everseeker Posted April 21, 2008 Share Posted April 21, 2008 (edited) I have a shortcut that I have to "execute"... can't just go run the .exe file... need to use this silly shortcut But the following: Run("C:\Documents and Settings\pbm0869\Start Menu\Programs\Humana\RateCalculator8", "") produces: Unable to execute the external program. Any suggestions? Edited April 21, 2008 by everseeker Everseeker Link to comment Share on other sites More sharing options...
ProgAndy Posted April 21, 2008 Share Posted April 21, 2008 Does Shellexecute work? *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
everseeker Posted April 21, 2008 Author Share Posted April 21, 2008 Does Shellexecute work?hmmm.... I shall investigate... Everseeker Link to comment Share on other sites More sharing options...
spudw2k Posted April 21, 2008 Share Posted April 21, 2008 (edited) You could also try "Start.exe"edit: A workaround maybe required. Start doesn't work right on links if it's not running from the same dir.My workaround is cd to the dir first then use start to run the link.Still trying to code it in auto it.See post below. Edited April 21, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
jben Posted April 21, 2008 Share Posted April 21, 2008 (edited) Run("C:\Documents and Settings\pbm0869\Start Menu\Programs\Humana\RateCalculator8.lnk", "") <--you forgot the .lnk sorry spud i can see you included it within your code, just thought i would highlight this.. Edited April 21, 2008 by jben Link to comment Share on other sites More sharing options...
spudw2k Posted April 21, 2008 Share Posted April 21, 2008 (edited) This do? Run(@comspec & " /c cd " & chr(34) & "C:\Documents and Settings\pbm0869\Start Menu\Programs\Humana\" & chr(34) & " && start " & "RateCalculator8.lnk") Edited August 27, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
everseeker Posted April 21, 2008 Author Share Posted April 21, 2008 (edited) hmmm.... I shall investigate... nope... A little more info... this is a "Clickonce" installation... the file in question carries an extension of .appref-ms pop that into Google to see what my problem is.... So far, I have tried: ; Launch Rate Calc ;Run("C:\Documents and Settings\pbm0869\Start Menu\Programs\Humana\RateCalculator8", "") ;Run("C:\Documents and Settings\pbm0869\Start Menu\Programs\Humana\RateCalculator8.appref-ms", "") ;Run(FileOpenDialog("Launch Rate Calculator", "C:\Documents and Settings\pbm0869\Start Menu\Programs\", "All(*.*)", 1, "RateCalculator8*")) ;ShellExecute("RateCalculator8", "", "C:\Documents and Settings\pbm0869\Start Menu\Programs\", "[email=""]", "@SW_MAXIMIZE[/email]") ShellExecute("RateCalculator8.appref-ms", "", "C:\Documents and Settings\pbm0869\Start Menu\Programs\", "[email=""]", "@SW_MAXIMIZE[/email]") No joy for any of the above.... Edit - Trying Spud with .appref-ms mod Edited April 21, 2008 by everseeker Everseeker Link to comment Share on other sites More sharing options...
everseeker Posted April 21, 2008 Author Share Posted April 21, 2008 Edit - Trying Spud with .appref-ms mod OOhhhh a Gold star to the Potato in the back row!!! That worked! (or rather:) Run(@comspec & " /c cd " & chr(34) & "C:\Documents and Settings\pbm0869\Start Menu\Programs\Humana\" & chr(34) & " && start " & "RateCalculator8.appref-ms") Everseeker 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