| PaulSadowski.com | |||
| Simple ASX Play List Generator | |||
|
This script generates a simple ASX play list for Windows® Media Player.
It will not run on Windows® 9.x or Windows® ME. It is designed for
playing files off your local computer or LAN, not from a web server. The output is sent to the Standard Output and should be redirected to a file. The scripts take one or more arguments. The first argument may be /s (Case Insensitive) if you want all the sub-directories of the specified path(s) included. The remaining arguments are the paths and file specification of the files to be included in the play list. These arguments can be a folder name like "C:My Music" which will include all the files in that folder; a specific file such as d:\MP3s\Randi.mp3; or a path and file specification using wildcards such as F:\Movies\*.mpg Sample usage: This script used without the /s switch to do a recursive list will place the paths of the files in the current directory. Therefore, you should either CD to the directory in question when running the script or use a method like this to get the proper paths in the ASX file without using the /s switch. for %c in ("E:\Cat_Stevens"
"E:\Harry Chapin") do @pushd %c & c:\bin\makeasx %c\*.wma > c:\temp\%~nc.asx
& popd Notice the directory names, you can
use one or many, go into the setlist (between the parenthesis) and are
double quoted, always. The full path to the MakeASX.cmd file and to the
output directory is also required. You can then rename the ASX files to whatever you like. | |||
© 2004 by Paul R. Sadowski |
|||