• English
  • Deutsch
  • Español
  • Русский
Professional Radio Automation at a price you can afford.Professional Radio Automation at a price you can afford.
RadioBOSS box
RadioBOSS makes automating your broadcast to the world, your business or shop professional, simple, affordable, reliable.

Author Topic: Short Commands in .bat files.  (Read 5263 times)

0 Members and 1 Guest are viewing this topic.

pety

  • Experienced user
  • Posts: 1251
Short Commands in .bat files.
« on: May 09, 2014, 02:13:39 AM »
Motivation:
1. If access/run an executable from RadioBOSS (e.g. PlaylistGeneratorPro.exe) we have to add the entire path and some shots must be between quotes:

Code: [Select]
"C:\Program Files\RadioBOSS\PlaylistGeneratorPro.exe" "-preset=Ittaly+Blues2+2" -out=E:\!_RadioBOSS\Playlists\Feb_%%nn.m3u8
2. If want to make 24 customized commands will be very difficult to check all paths and becouse the length of the command.

Solution:

Insert the path of RadioBOSS in System Variables:

Code: [Select]
;C:\Program Files\RadioBOSS
How to (steps in Windows 7):

A. Windows PATH Variable

1. Control Panel -> System -> Advanced System Settings;
2. Tab Advanced -> Environment Variables... (right bottom button);
3. System variables -> Path -> Edit... button (or double click on "Path");
4. At the end of the "Variable value:" field add without space between characters a semicolon and your path of RadioBOSS. Mine is:

Code: [Select]
;E:\!_RadioBOSS\RadioBOSS
Yours could be:

Code: [Select]
;C:\Program Files\RadioBOSS
5. Click all "OK" buttons.

B. bat File

Now the command will be shorter and easier to read:

Code: [Select]
PlaylistGeneratorPro "-preset=ORA 00" -out=E:\!_RadioBOSS\Playlists\MAI10_00.m3u8
VARIATION:

If you want another name instead PlaylistGeneratorPro make a copy of PlaylistGeneratorPro.exe and rename it as you wish. For example I renamed it as "Gen.exe". So my command in bat file is:

Code: [Select]
Gen  "-preset=ORA 00" -out=E:\!_RadioBOSS\Playlists\MAI10_00.m3u8
« Last Edit: May 09, 2014, 07:46:43 AM by pety »