dazza Posted February 25, 2010 Share 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 Link to comment Share on other sites More sharing options...
funkey Posted February 25, 2010 Share 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. Link to comment Share on other sites More sharing options...
Fire Posted February 25, 2010 Share 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] Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 25, 2010 Share Posted February 25, 2010 I expect the problem is that you are not using the full path to the executable. Link to comment Share on other sites More sharing options...
dazza Posted February 25, 2010 Author Share Posted February 25, 2010 Many thanks. Plenty to work with. Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 25, 2010 Share 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. Link to comment Share on other sites More sharing options...
dazza Posted March 22, 2010 Author Share Posted March 22, 2010 Run("rundll32.exe shell32.dll,#61") Many thanks Funkey Link to comment Share on other sites More sharing options...
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