You can just delete hidden files with the same del command, but since the files are hidden you need to map the location of the hidden folder in the command so the batch file knows where to look and delete.
@Echo off
del "location of hidden files and/or folders" /Q /F /S
exit
Wiki Books has information about batch scripts and examples. Network Automation has downloads to help with batch scripts. There are sample batch script files at Rovander Woude that would be helpful.
application
Deleting a file differs between Operating Systems. One can use the delete key on the keyboard. In GUI-based Operating Systems one can use the delete menu item, delete button, delete icon. One can also drag-and-drop or move files to the delete or trash folder. Text-based commands also exist that also delete files. Text-based commands can be added to scripts or batch files. There are also utilities that securely deletes files by overwriting them several times before deletion.
If it says access is denied that means that access is deined, you can't delete it. I think you are probably trying to make a batch file virus to delete system files and is trying to make the batch file delete everything, but came into the access is deined problem.
To make it harder to delete, modify or move them by mistake.
No, you can't. Some of hidden folders are system and required for OS to run.
Subroutines are code blocks that can be called from anywhere in your code where the subroutine is within the scope of the caller. They are not used in batch files or command scripts, but they may be emulated by calling one batch file from another and waiting for the external call to return, which may (optionally) return an error level which can be tested by the caller. Subroutines can be used in other scripts, including vbscript and javascript. Subroutines may also be called functions or procedures depending on the type of script.
Some files can be protected from being deleted either because they are important system files or belong to a person who protected it, so if you don't own the rights for the file/folder you wish to delete, the batch file will not delete and will just say "Access is Denied".
you cannot delete unless it is cd-rw
Typically hidden files are never useless, that's why there hidden, to prevent people from deleting important system files. Aim and other programs normally do not hide their files. But windows (XP, Vista, etc.) hide files to prevent deletion. This is because they are vital to the operation of the OS (operating system.) I would recommend that you do not ever delete hidden files, unless you are fully aware of what the file is used for and are sure that it won't impact the stability of your system.
On a PC, search Raze on your computer (include hidden and system files). Delete any files that come up that say Raze on it. On a Mac, I don't know.
Programs store configuration files, caches, and other user-specific files as hidden files/folders in your home directory. To see a list of all of these files, use: $ ls -a ~ It is usually not a good idea to delete any of these files if you don't know what they are for.