Del>C:\Documents and Settings\My Name\Local Settings\*.tm

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Del>C:\Documents and Settings\My Name\Local Settings\*.tm

Post by armsys » Fri Dec 20, 2002 6:38 pm

I have exhausted all possible combinations in order to delete *.tmp files in vain. The technical issue is only peculiar to Windows XP. Also we must take into account that some *.tmp files may be currently used by applications; thus, they can't be removed. Nonetheless, the deletion process should continue nonstop until the end of the directory.

I'll profoundly appreciate your help. Thanks a lot.


Cheers,
Armstrong Wong
Hong Kong

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Fri Dec 20, 2002 6:55 pm

Try:


Let>delfiles=c:\documents and settings\my name\local settings\temp\*.tmp
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
Run>CMD.EXE /c del /q %delfiles%
MJT Net Support
[email protected]

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Dec 21, 2002 3:24 am

Hi Support,

Again I tried out your sample code in all imaginable combinations. Eventually, the following code works brilliantly:

Let>delfiles="c:\documents and settings\My Name\local settings\temp\*.tmp"
Let>RP_WAIT=5
Let>RP_WINDOWMODE=0
Run>CMD.EXE /c del /q %delfiles%
Let>delfiles=c:\documents and settings\My Name\local settings\temp\*.wav
Run>CMD.EXE /c del /q %delfiles%

The pair of double quotes does the trick. Hope you find it interesting.

Cheers,
Armstrong Wong
Hong Kong

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Dec 21, 2002 10:59 am

Ah yes, of course you would probably need quotes round the path as it contains spaces.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts