Jump to content
Sign in to follow this  
robertmoody151

System Information

Recommended Posts

robertmoody151

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

Share this post


Link to post
Share on other sites
PsaltyDS

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.

:mellow:


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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×