Jump to content
Sign in to follow this  
Guest oystercatcher

autoitv3.exe Run(@comspec --

Recommended Posts

Guest oystercatcher

I have been using autoitv3.exe and passing it a file with just

the single command Run(@comspec & 'shell command',"",@SW_HIDE)

Mainly to run from a cdrom. I would like to pass a command

instead of a file if possible?

So the bat script would have the path on the cdrom to autoitv3

followed by the command of choice

Thanks

Share this post


Link to post
Share on other sites
LxP

If I understand you correctly, you could place the AutoIt executable on your CD and then execute something like this from your batch file:

AutoIt3 /c "msgBox(32, 'Information', 'This is a message box.')"

Share this post


Link to post
Share on other sites
Guest oystercatcher

Thanks the slash c was what I was looking for.

autoitv3.exe /c "Run(@comspec & ' /k dir c:\ ' )"

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  

×