Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Pull info from a text file and set as variable

$
0
0

I've been reading and have found a few threads that mention this, but the text file is where the variables are defined and is standard.  I work in IT for a small company and I am working on a process to run some maintenance scripts on machines each night.  I need to run these as administrator.  The tricky part is that some of the machines use our domain admin and others use a local admin.  There are 3 different options that it could be.  Once I create the text file with the users, search the text file for the known users, if the either both exist or the local admin only exists set it as a variable to use in my runas, otherwise use the domain admin.  I'm very new to scripting and a beginner with AutoIT so please forgive me if I ask questions that may be very obvious.


Viewing all articles
Browse latest Browse all 12506

Trending Articles