I would like to write a script to delete all files in C:\Documents and Settings\%USER_NAME%\Local Settings\Temp. How could I implement it in Macro Scheduler script? None of the following statements succeeds.
del>C:\Documents and Settings\%USER_NAME%\Local Settings\Temp\*.TMP
del>C:\Documents and Settings\%USER_NAME%\Local Settings\Temp\~*.DOC
del>C:\Documents and Settings\%USER_NAME%\Local Settings\Temp\~*.XML
System Variables
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Looks fine to me. Are you sure you have permission to delete those files? They may be in use. It is not advisable to delete temporary files unless you are in safe mode and no other applications are running (or before windows has started up).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?