Jump to content

Noob Run Query


Recommended Posts

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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

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