Del/Erase Commands

Posted by Robert A Palmer on Super User See other posts from Super User or by Robert A Palmer
Published on 2012-10-26T16:15:46Z Indexed on 2012/10/26 17:06 UTC
Read the original article Hit count: 245

Filed under:
|
|

I'm currently trying to use the del or the erase command in a RSM Telnet to delete Temp files on users computers. But the problem I'm running into with the command is that it is working, but won't delete any of the files located in the temp folder.

Command I'm using : erase c:\users\[username]\appdata\local\temp

I have used the command with the /p to prompt me, but some of these temp folders have thousands of files in them and sitting there and pressing Y and then enter endlessly is not going to work, because I have around 90 computers to clean temp files on. Is there something wrong with the command or is there a simpler command to use to delete the temp files on the computer?

Thanks

© Super User or respective owner

Related posts about Windows

Related posts about command-line