Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- users := Object()
- ArrayCount := 0
- Loop, C:\Users\*, 2, 0 ;look at all the folders in C:\Users and return the variables
- {
- ;test if the folder is one of the default user accounts. If it is, skip it.
- if (A_LoopFileName = "Administrator" or A_LoopFileName = "Public" or A_LoopFileName = "All Users" or A_LoopFileName = "Default" or A_LoopFileName = "Default User")
- continue
- else
- {
- ArrayCount += 1
- users[ArrayCount] := A_LoopFileName
- }
- }
Add Comment
Please, Sign In to add comment