Guest User

Untitled

a guest
Oct 16th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. users := Object()
  2.  
  3. ArrayCount := 0                        
  4. Loop, C:\Users\*, 2, 0 ;look at all the folders in C:\Users and return the variables
  5. {
  6.     ;test if the folder is one of the default user accounts. If it is, skip it.
  7.     if (A_LoopFileName = "Administrator" or A_LoopFileName = "Public" or A_LoopFileName = "All Users" or A_LoopFileName = "Default" or A_LoopFileName = "Default User")
  8.         continue
  9.     else
  10.     {
  11.         ArrayCount += 1
  12.         users[ArrayCount] := A_LoopFileName
  13.     }
  14. }
Add Comment
Please, Sign In to add comment