dazza Posted February 25, 2010 Posted February 25, 2010 I am passing the correct file name and path yet (for some reason) the warning 'Cannot find this executable' pops up. I expect it's priviledges as I am working on secure machines. Is there a jazzy way of bringing up the Start->Run window so I can pass in the path/exe? I don't really want to use clicks and sends. Many thanks
funkey Posted February 25, 2010 Posted February 25, 2010 Run("rundll32.exe shell32.dll,#61") Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning.
Fire Posted February 25, 2010 Posted February 25, 2010 Hi dazza. Witout src i cannot say where is your prob. But you can try this ways too: Run("cmd.exe /c " & """" & "PATH TO YOUR EXE FILE" & """",@ScriptDir,@SW_HIDE) ShellExecute("""" &"yourfile.exe"& """") It will solve this problem. Hope it helps. [size="5"] [/size]
Richard Robertson Posted February 25, 2010 Posted February 25, 2010 I expect the problem is that you are not using the full path to the executable.
Richard Robertson Posted February 25, 2010 Posted February 25, 2010 Oh, and I hope you're not confusing the working directory parameter as the path to the executable. You need to actually run "C:\Windows\notepad.exe" or whatever the target is.
dazza Posted March 22, 2010 Author Posted March 22, 2010 Run("rundll32.exe shell32.dll,#61") Many thanks Funkey
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