open a file in a non-default application

Discuss RoboTask here
Post Reply
DraBS
Posts: 35
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria

open a file in a non-default application

Post 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?
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

open a file in a non-default application

Post by Oleg »

You may use the following command line (for example):
"C:\Program Files\Mozilla Firefox\firefox.exe" http://www.robotask.com/
DraBS
Posts: 35
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria

open a file in a non-default application

Post 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).
Last edited by DraBS on Thu Jan 08, 2009 6:13 am, edited 1 time in total.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

open a file in a non-default application

Post by Oleg »

You also may use the following as parameter:
"e:\Temprary Data\Mypage.html"

You have to use quotas if filenames contain spacebar.
Last edited by Oleg on Thu Jan 08, 2009 6:26 am, edited 1 time in total.
DraBS
Posts: 35
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria

open a file in a non-default application

Post by DraBS »

Thanks!
Post Reply