answersLogoWhite

0

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

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Where can one find examples of batch scripts?

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.


How do you make a batch to delete files with specific name pattern?

application


How do you erase of file from your hard drive?

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.


How do you get a batch file to delete a directory when it says Acess is Denied?

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.


Why are system files hidden?

To make it harder to delete, modify or move them by mistake.


Can you safely delete all hidden files?

No, you can't. Some of hidden folders are system and required for OS to run.


What are subroutines and are they used in batch files scripts neither or both?

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.


You are deleting a file from batch file Somehow the delete function not deleting some time?

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".


How do you remove hidden and useless files fro?

you cannot delete unless it is cd-rw


If you remove hidden and useless files from your hard drive will it delete aim and things like that?

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.


How do you delete raze game profile?

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.


What kinds of hidden files are stored in home directories?

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.