home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
x
/
xmstr105.zip
/
SPLCMD10.ZIP
/
SPLITCMD.DOC
next >
Wrap
Text File
|
1992-05-23
|
2KB
|
46 lines
A Program to Split the Command Line - by Joy Mukherjee
------------------------------------------------------
Usage
-----
SPLITCMD is a program I hacked together in Turbo Pascal to solve the
problem of programs which don't accept full path names from the command
line. MODPLAY / SUPER Sonic Gram come to mind.
Note to authors : This is aggravating! Make any players support a valid
path name from the command line!
SPLITCMD will split the directory apart from the file name, and the
drive from the directory. It will then : 1) switch to that drive; 2)
change to that directory; 3) run the player as normal with just the
filename on the command line.
MODPlay can handle the file name by itself so this works out nicely.
Check out the EXBATCH.ARJ to see examples of using SPLITCMD.EXE to play
a file. Essentially, it goes like this : Call SPLITCMD instead of your
normal player with the command :
<drive>:\<directory name>\SPLITCMD.EXE %1
call <drive>:\<directory name>\FEB.BAT
del <drive>:\<directory name>\FEB.BAT
That is the batch file. Next, we must configure SPLITCMD for use. Note :
SPLITCMD can only be configured for one program. Therefore, keep multiple
copies of SPLITCMD in different directories or rename the program.
To configure SPLITCMD, type SPLITCMD /C.
It will ask for a directory where you keep the given file name, and the
program name with any command line parameters. For example, for
MODPlay, use your directory, and specify "MP -s" for the program
name/parameters. Its that simple! Check out the examples included in
the EXBATCH.ARJ for additional help.
The program works by creating a batch file called FEB.BAT and then
running it from the ???PLAY?.BAT that X-MASTER uses. Contact me on a
support board, the AdLib (Sound Card) conference on FidoNet or write to
me if you have problems.