Jump to content
Sign in to follow this  
Tinnu

Open With

Recommended Posts

Tinnu

Hello

i want to Open a *.XPI File with firefox.

but this line is not working

Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe" $Path & "\AdBlockerPlus.xpi")

why?


Share this post


Link to post
Share on other sites
somdcomputerguy

Try this

Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe " $Path & "\AdBlockerPlus.xpi")

Notice just a space added after firefox.exe


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
Tinnu

Thanks, but now i am getting this error

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\Tinnu\Desktop\install.au3"

C:\Documents and Settings\Tinnu\Desktop\install.au3 (16) : ==> Error in expression.:

Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe " "c:\AdBlockerPlus.xpi")

Run(^ ERROR

>Exit code: 1 Time: 5.766

Edited by Tinnu

Share this post


Link to post
Share on other sites
sahsanu

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\Tinnu\Desktop\install.au3"

C:\Documents and Settings\Tinnu\Desktop\install.au3 (16) : ==> Error in expression.:

Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe " "c:\AdBlockerPlus.xpi")

Run(^ ERROR

Add an & before $Path

Run(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe " & $Path & "\AdBlockerPlus.xpi")

Share this post


Link to post
Share on other sites
Tinnu

Yes it's working fine now

Thanks somdcomputerguy & sahsanu


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  

×