sev9756 Posted August 19, 2009 Share Posted August 19, 2009 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 More sharing options...
99ojo Posted August 19, 2009 Share Posted August 19, 2009 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! >_<ThanksAlan.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 More sharing options...
WolfWorld Posted August 19, 2009 Share Posted August 19, 2009 Use ShellExeute Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now