Sign in to follow this  
Followers 0
silver217

How do I start firefox from an AutoIt program ?

3 posts in this topic

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 !

Share this post


Link to post
Share on other sites



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')

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0