Jump to content

autoitv3.exe Run(@comspec --


Recommended Posts

Guest oystercatcher
Posted

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

Posted

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.')"
Guest oystercatcher
Posted

Thanks the slash c was what I was looking for.

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...