Jump to content

Recommended Posts

Posted

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

Posted (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 by Andreik
Posted

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

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
  • Recently Browsing   0 members

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