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 

multiple users

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



Joined: 06 Oct 2009
Posts: 58

PostPosted: Tue Mar 16, 2010 8:27 pm    Post subject: multiple users Reply with quote

is there a good way to have a script clean files from multiple users?

as in C:\Documents and Settings\User1
C:\Documents and Settings\User2
C:\Documents and Settings\User3
etc?
without specifically naming the users?
_________________
<ellipsis>...</ellipsis>
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Tue Mar 16, 2010 8:31 pm    Post subject: Reply with quote

See Loop command.
Code:
Loop,C:\Documents and Settings\*,0,1
 MsgBox % A_LoopFileFullPath

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Bobmonkey07



Joined: 06 Oct 2009
Posts: 58

PostPosted: Thu Mar 18, 2010 7:46 pm    Post subject: Reply with quote

why is there a msgbox there?

i don't understand the need for it in this instance.
also, looking at the helpfile, i can understand one number after the command, but why are there two?
_________________
<ellipsis>...</ellipsis>
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Thu Mar 18, 2010 7:50 pm    Post subject: Reply with quote

MsgBox was to show what files would get deleted, you'll need FileDelete.
LoopFile Help
_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Display posts from previous:   
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