Short Commands in .bat files.

pety

Active member
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:
"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:
;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:
;E:\!_RadioBOSS\RadioBOSS

Yours could be:

Code:
;C:\Program Files\RadioBOSS

5. Click all "OK" buttons.

B. bat File

Now the command will be shorter and easier to read:

Code:
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:
Gen  "-preset=ORA 00" -out=E:\!_RadioBOSS\Playlists\MAI10_00.m3u8
 
Back
Top