pcjunki Posted November 5, 2012 Posted November 5, 2012 i have created a gui that executes "tasks" from GUICtrlSetData i type in the pc name, which sets it from GUICtrlCreateInput instead of typing the computer name (which sets the data) can i have it read from a text file? which contains all the computer names? i haven't built an arrary yet, i kinda understand the theory but i'm ready to step up my game in coding any examples would be great to start off with. like...read a txt file (pclist.txt) and execute a command (command.txt) which could be like ...notepad or excel thanks
Moderators JLogan3o13 Posted November 5, 2012 Moderators Posted November 5, 2012 Hi, pcjunki. To read a text file into an array, you would use _FileReadToArray. Something like this should give you an idea: #include <File.au3> #include <Array.au3> Local $aArray _FileReadToArray(@DesktopDir & "assets.txt", $aArray) _ArrayDisplay($aArray) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now