Page 1 of 1

open a file in a non-default application

Posted: Wed Jan 07, 2009 7:18 am
by DraBS
How can I set a file to be opened in a specific program which is not the default one? For instance, if my default browser is Opera, how can I make Robotask open a given html file not in Opera but in Firefox?

open a file in a non-default application

Posted: Thu Jan 08, 2009 12:59 am
by Oleg
You may use the following command line (for example):
"C:\Program Files\Mozilla Firefox\firefox.exe" http://www.robotask.com/

open a file in a non-default application

Posted: Thu Jan 08, 2009 2:12 am
by DraBS
Thank you, it works. :)

As it took me some time before I figured out how exactly the command line should be entered in Robotask I will add a detailed explanation here. It would be helpful for unexperienced users like me who would try to do the same thing.

A screenshot first:



So first, you enter the program by which you want to open a given file in the "Program or Document File Name" field.

Then, in the "Parameters" field you put the path of the file. Note that in this case - opening an htm file in FF - you need to give the path with "file:///".

To make sure how exactly the path for a file should be defined you'd better open it first in the program you desire and see how it is given in the address field (if there's such of course).

open a file in a non-default application

Posted: Thu Jan 08, 2009 2:25 am
by Oleg
You also may use the following as parameter:
"e:\Temprary Data\Mypage.html"

You have to use quotas if filenames contain spacebar.

open a file in a non-default application

Posted: Thu Jan 08, 2009 2:32 am
by DraBS
Thanks!