Your Airline

busyLoading Poll...

Latest Posts

More Topics »

Make a Donation

Do you like the program? Why not donate some money to maintain and improve this website and the program?

Enter Amount:



8. Command line arguments

This chapter describes how you can use command line arguments in Roster2Outlook.

Previous - Back to contents

Roster2Outlook supports the use of command line arguments. The arguments can be used to automate things. You can use the arguments in a shortcut or use it in Windows Scheduler to run Roster2Outlook at a specified time or event.

The format to use the arguments is:

C:\>Roster2Outlook.exe [/a][/s][/v][/d][/u#] [input_file.htm] [output_file.ics]

  • [/a][/s][/v][/d][/u#] – command line options. /a is for automatic download, /s is the same but silent (no R2O windows), /v view rosters after download, /d for debug mode, /u# start with user # (where # is the position of the desired user in the list). If used together, make sure you don't include a space, i.e. use "/a/d" or “/s/v”.
  • [input_file.htm] - here you can specify the html input file. You have to use the full path to the file, except when the file is located in the Roster2Outlook folder. If the file name/path has spaces, you have to enclose the filename in quotes. The extension needs to be "htm" or "html". If you use this paramter, you also have to use the /a parameter. E.g. /a "C:\My Documents\roster.html".
  • [output_file.ics] - Here you can specify the output file name. This name has to have an "ics" extension and this needs to be the last argument. It is used together with [/a] or [/a] [input_file.htm]. Also when the filename/path has spaces you have to enclose with quotes. So if you would use /s you won’t see any windows, Roster2Outlook will put a little icon in the notification area of the taskbar to show it is running. If you use /v the roster will be displayed after download.

Examples:

C:\>Roster2Outlook.exe /a/u1
Runs Roster2Outlook in automatic mode for the first user in the list. Only works with a download add-on, as Roster2Outlook will attempt to download a roster automatically in this case and will export to Outlook/Google (whichever was used before). Afterwards Roster2Outlook quits.

C:\>Roster2Outlook.exe /s/u2
Same as above, but without any Roster2Outlook windows an for the second user in the list. Roster2Outlook will put a little icon in the notification area to show it is running. In all examples below /a can be replaced by /s to hide the Roster2Outlook window.

C:\>Roster2Outlook.exe /a/v
Same as above, but Roster2Outlook will show the roster(s) after download. The main Roster2Outlook window will close after export, but the roster window(s) will stay open untill you close them.

C:\>Roster2Outlook.exe /a myroster.html
Runs Roster2Outlook in automatic mode. Roster2Outlook will attempt to read the file myroster.html in the Roster2Outlook folder. This roster will be exported to Outlook. Afterwards Roster2Outlook quits.

C:\>Roster2Outlook.exe /a "c:\my documents\myroster.html"
Runs Roster2Outlook in automatic mode. Roster2Outlook will attempt to read the file myroster.html in the folder "c:\my documents". This roster will be exported to Outlook/Google (whichever was used before). Afterwards Roster2Outlook quits.

C:\>Roster2Outlook.exe /a myroster.html myroster.ics
Runs Roster2Outlook in automatic mode. Roster2Outlook will attempt to read the file myroster.html in the Roster2Outlook folder. This roster will be exported to the ics file myroster.ics in the Roster2Outlook folder. Afterwards Roster2Outlook quits.

C:\>Roster2Outlook.exe /a myroster.ics
Runs Roster2Outlook in automatic mode. Only works with a download add-on, as Roster2Outlook will attempt to download a roster automatically in this case. This roster will be exported to the ics file myroster.ics in the Roster2Outlook folder. Afterwards Roster2Outlook quits.

Previous - Back to contents