AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please help fix this :o) thanks

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Mar 12, 2005 5:46 am    Post subject: Please help fix this :o) thanks Reply with quote

>!^`::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

PostPosted: Sat Mar 12, 2005 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Mar 12, 2005 6:31 am    Post subject: thanks but not quite right Reply with quote

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

PostPosted: Sat Mar 12, 2005 6:40 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Mar 12, 2005 9:12 am    Post subject: sorry but still not helped me really Reply with quote

>!^`::run cmd /k del \%UserProfile%\locals~1\temp\*.* /q

trying to delete all files in the temp directory

thanks
Back to top
BoBo
Guest





PostPosted: Sat Mar 12, 2005 9:27 am    Post subject: Reply with quote

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

PostPosted: Sat Mar 12, 2005 9:33 am    Post subject: Reply with quote

Code:
FileDelete, C:\Documents and Settings\%Username%\Local Settings\Temp\*.*

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group