Gregs Posted July 11, 2008 Posted July 11, 2008 Hi! I´m new in AutoIT and I need help I would like to run cmd command: "c:\Program Files\Microsoft Bootvis\"BootVis.exe -prepsystem I tried with Run and ShellExecute options but didn´t work. Run ('C:\Program Files\Microsoft Bootvis\bootvis.EXE" "-prepsystem"', @WorkingDir) Regards, Grega Globocnik
Andreik Posted July 11, 2008 Posted July 11, 2008 (edited) Your syntax is not correct. ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) "C:\Program Files\Microsoft Bootvis\bootvis.EXE" is file name -prepsystem is parameter Use: ShellExecute("C:\Program Files\Microsoft Bootvis\bootvis.EXE","-prepsystem") Edited July 11, 2008 by Andreik
Gregs Posted July 11, 2008 Author Posted July 11, 2008 Your syntax is not correct. ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) "C:\Program Files\Microsoft Bootvis\bootvis.EXE" is file name -prepsystem is parameter Use: ShellExecute("C:\Program Files\Microsoft Bootvis\bootvis.EXE","-prepsystem") Andreik thanks very much. It works great now. How to close the Post? Regards Grega
Andreik Posted July 11, 2008 Posted July 11, 2008 (edited) Put SOLVE at name of this topic. You cannot delete topic. Edited July 11, 2008 by Andreik
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