silver217 Posted July 31, 2013 Posted July 31, 2013 How do I start firefox from an AutoIt program ? this does not work: Run('C:"Program Files (x86)Mozilla Firefox"firefox.exe <URL here>', '', @SW_HIDE) error is: 'C:Program' is not recognized as an internal or external command, operable program or batch file. Am I struggling with the ' " ? I also tried to use %ProgramFiles(x86)% , same result This works, but I don't like it: Run(@ComSpec & " /c " & 'a.bat', '', @SW_HIDE) with a one line a.bat: C:Program Files (x86)Mozilla Firefoxfirefox.exe <URL here> Am I struggling with the ' " ? Please Help !
orbs Posted July 31, 2013 Posted July 31, 2013 actually, this one works even without the double-quotes, but in general: enclose the entire path inside the double-quotes, like this: Run('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" www.google.com') Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Edano Posted July 31, 2013 Posted July 31, 2013 (edited) i recently noticed that the double quotes are not necessary anymore. obviously autoit internally uses the dos 8.3 pathnames automatically now. (sorry mods, if this is wrong) Edited July 31, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]
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