# 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.

##### 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

Use ShellExeute

## Create an account

Register a new account