robertmoody151 Posted June 30, 2010 Share Posted June 30, 2010 I'm new to AutoIT and would appreciate any help. I am trying to build a routine that will capture some specific information for an automated process I have built. The process executes perfectly, but I can't get the preliminary stuff to execute properly. The script needs to work on XP Vista and Windows 7 The script looks like this.. Run(@ComSpec & " /c " & 'subst k: .', "", @SW_HIDE) Run(@ComSpec & " /c " & 'c:\systeminfo.exe >> k:\capture\pcinfo.txt', "", @SW_HIDE) Run(@ComSpec & " /c " & 'c:\date.exe /t >> k:\capture\startd.txt', "", @SW_HIDE) Run(@ComSpec & " /c " & 'c:\time.exe /t >> k:\capture\startt.txt', "", @SW_HIDE) Run(@ComSpec & " /c " & 'c:\copy.exe k:\capture\startd.txt /a + k:\capture\startt.txt /a k:\capture\imagestart.txt /a/v/y', "", @SW_HIDE) Run(@ComSpec & " /c " & 'c:\delete.exe k:\capture\start*.txt /q', "", @SW_HIDE) Thanks Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 30, 2010 Share Posted June 30, 2010 You might want RunWait() vice Run(). All of those Run() statements will get kicked off within a few milliseconds of each other and will all be running at the same time. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
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