Sign in to follow this  
Followers 0
sev9756

Noob Run Query

3 posts in this topic

Hi Folks,

Got a (hopefully!) simply syntax problem.

I want to run an exe with an argument.

e.g. in my autoit script i have:

Run ("c:\program files\miktex 2.6\miktex\bin\copystart_admin.exe c:\program files\miktex 2.6\miktex\config\uninstall.dat" )

But the argument (the ....uninstall.dat bit) never seems to get picked up.

I'm sure this is just a really silly bit of syntax I haven't got quite right but no matter what I've tried I just can't get it to work... :(

Some assistance for a noob would be much appreciated! >_<

Thanks

Alan.

Share this post


Link to post
Share on other sites



Hi Folks,

Got a (hopefully!) simply syntax problem.

I want to run an exe with an argument.

e.g. in my autoit script i have:

Run ("c:\program files\miktex 2.6\miktex\bin\copystart_admin.exe c:\program files\miktex 2.6\miktex\config\uninstall.dat" )

But the argument (the ....uninstall.dat bit) never seems to get picked up.

I'm sure this is just a really silly bit of syntax I haven't got quite right but no matter what I've tried I just can't get it to work... :(

Some assistance for a noob would be much appreciated! >_<

Thanks

Alan.

Hi,

this should work:

$cmd = """c:\program files\miktex 2.6\miktex\bin\copystart_admin.exe""" & " " & """c:\program files\miktex 2.6\miktex\config\uninstall.dat"""

Run ($cmd)

;-))

Stefan

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  
Followers 0