dexxa Posted May 12, 2005 Posted May 12, 2005 can i run a shortcut using run? like run("d:\program.lnk") i keep getting error saying like "unable to execute external program". i also try _ShellExecute("d:\program.lnk") also getting error like "cant find the file" or something like that. am i doing something wrong? thx in advance.
Blue_Drache Posted May 12, 2005 Posted May 12, 2005 can i run a shortcut using run? like run("d:\program.lnk")i keep getting error saying like "unable to execute external program".i also try_ShellExecute("d:\program.lnk") also getting error like "cant find the file" or something like that.am i doing something wrong? thx in advance.<{POST_SNAPBACK}>Uh....try using the "start d:\file.lnk" in a RunWait(@comspec) line.Check the help file for an excellent example. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
dexxa Posted May 12, 2005 Author Posted May 12, 2005 (edited) thx. funny function tho. this works RunWait(@ComSpec & " /c" & "start D:file") these both bring up the open with window. RunWait(@ComSpec & " /c" & "start D:\file") RunWait(@ComSpec & " /c" & "start D:file.lnk") this gives me an error like "windows cannot find D:\program." RunWait(@ComSpec & " /c" & "start D:\program files\file") its like it reads until a space. Edited May 12, 2005 by dexxa
CyberSlug Posted May 13, 2005 Posted May 13, 2005 funny function tho....its like it reads until a space.Paths with spaces must be enclosed in quotes...RunWait(@ComSpec & ' /c' & 'start "D:\program files\file"') Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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