| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Mar 12, 2005 5:46 am Post subject: Please help fix this :o) thanks |
|
|
>!^`::run cmd /k del \%UserProfile%\locals~1\temp\*.* /q
trying to delete all files in the temp directory
thanks |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 896
|
Posted: Sat Mar 12, 2005 6:10 am Post subject: |
|
|
You could use FileDelete with a wildcard to match all files in the directory:
| Code: | | FileDelete, C:\temp files\*.* |
_________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Mar 12, 2005 6:31 am Post subject: thanks but not quite right |
|
|
| thanks Serenity but i want to del the temp in local settings for whoever is logged in |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 896
|
Posted: Sat Mar 12, 2005 6:40 am Post subject: |
|
|
You could specify the %Username% variable in the path to delete the contents of the folder for the user currently logged in:
| Code: | ^enter::
msgbox, %Username% is currently logged in. |
_________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Mar 12, 2005 9:12 am Post subject: sorry but still not helped me really |
|
|
>!^`::run cmd /k del \%UserProfile%\locals~1\temp\*.* /q
trying to delete all files in the temp directory
thanks |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sat Mar 12, 2005 9:27 am Post subject: |
|
|
| Code: | | >!^::FileDelete, %UserProfile%\locals~1\temp\*.* |
| Quote: | | >!^::run %COMSPEC% /k del \%UserProfile%\locals~1\temp\*.* /q |
|
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 896
|
Posted: Sat Mar 12, 2005 9:33 am Post subject: |
|
|
| Code: | | FileDelete, C:\Documents and Settings\%Username%\Local Settings\Temp\*.* |
_________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
|