nevodj 0 Posted May 16, 2011 Hello, don't know if this is achievable, but i want to create a folder in my documents for every account in our accounting system, with the folder name being their account code. I can get a list of the account codes in excel or csv or any other format. I wondered if there was a way to automate this process in AutoIT cos i don't really feel like creating 3500 folders manually.........!!! Thanks Share this post Link to post Share on other sites
enaiman 16 Posted May 16, 2011 That is perfectly possible. You need to have the account names read into an array - if you can get them in a text file with 1 account name/line that would be easier - but csv, xls ... will work too. My example will be based on having them in a txt file, one account / line. #include <File.au3> Global $usrArray _FileReadToArray("your file here", $usrArray) For $i = 1 To $usrArray[0] DirCreate(@MyDocumentsDir&"\"&$usrArray[$i]) Next MsgBox(0, "OK", "All Done") Test it first with a text file with only several account names. If you're happy - go for the full implementation. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites
nevodj 0 Posted May 16, 2011 just on this... It's the adding to context menu i am lost on.... the sql bit etc i can handle. Share this post Link to post Share on other sites
nevodj 0 Posted May 17, 2011 Don't worry, got this sorted. Share this post Link to post Share on other sites