Sign in to follow this  
Followers 0
BelieverofAutoIt

No run the Exe file.

6 posts in this topic

How to use "Run" Command. I want to Setup.exe from DVD drive automatically.

I want to install software automatically.

SCripts below:(E is DVD drive.) But no launch the software.

Run("E:\LEXT\Setup.exe")

why? OS is Vista(Service pack1)

Is it impossbile other than C drive?

Share this post


Link to post
Share on other sites



Try

ShellExecute("E:\LEXT\Setup.exe")

"Run" tries to open the file in the associated application (as far as i've understood).

Share this post


Link to post
Share on other sites

hudl,

I am afraid you have got it the wrong way round! :P

Run - will run an executable. The file must be an EXE, BAT, COM, or PIF.

ShellExecute - asks the shell to run what ever app is associated with the file type. It will run EXE files as well, but it is designed to let you use files with extensions like DOC, TXT, LNK, etc as the parameter. :)

BelieverofAutoIt,

When you say it does not run, what exactly happens? Could UAC be preventing you from running the executable? Do you have the correct permissions? :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Uhm, yes... :)

You live and learn... :P

I too had a problem once with Run and used ShellExecute instead - which worked. Tried it now again with Run and it works... anyways... :)

Share this post


Link to post
Share on other sites

hudl,

You live and learn...

Always! :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

hudl

Thanks for quick response. It goes well using ShellExecute.

Melba23

Run goes well on XP. Maybe,the problem is permission, I think too.

But I executed with Administrator.

I didn't know the detail any more. Anyway, Thank you.

Share this post


Link to post
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
Sign in to follow this  
Followers 0