home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
USE.ZIP
/
USE.DOC
< prev
next >
Wrap
Text File
|
1989-09-11
|
2KB
|
65 lines
USE and UNUSE are utility programs for adding and removing
directories from your path, without retyping the entire path.
USE will add a directory to the PATH; UNUSE removes a directory.
If you don't specify a path, USE and UNUSE will print the
current path. Similarly, if the directory you specify is not in
the path, USE and UNUSE will just print the current path.
By default, USE will put the new directory at the front of the
path. Starting USE with the switch "/E" or "/B" will put the
directory at the end of the path. If USE is started with a dir-
ectory already on the path, that directory will be moved to the
front of the path, or the back if the "/E" or "/B" switch is used.
Examples:
C:\>Rem Print the current path.
C:\>path
PATH=C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
C:\>Rem Starting USE without a directory prints the current path.
C:\>use
PATH=C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
C:\>Rem Add c:\test to the beginning of the path.
C:\>use c:\test
PATH=C:\TEST;C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
C:\>Rem Remove c:\test from the path.
C:\>unuse c:\test
PATH=C:\UTILITY;C:\NORTON;C:\BATCH;C:\DOS
C:\>Rem C:\DOS is already on the path; it is moved to the front.
C:\>use c:\dos
PATH=C:\DOS;C:\UTILITY;C:\NORTON;C:\BATCH
C:\>Rem C:\utility is on the path; /B or /E moves to the back.
C:\>use c:\utility /b
PATH=C:\DOS;C:\NORTON;C:\BATCH;C:\UTILITY
C:\>Rem C:\ is not on the path; UNUSE just prints the path.
C:\>unuse c:\
PATH=C:\DOS;C:\NORTON;C:\BATCH;C:\UTILITY
USE and UNUSE have been tested with DOS versions 2, 3, and 4;
PC DOS, MS DOS, and Epson MS DOS. However, USE and UNUSE change
the environment area of DOS, and you should test it throughly on
your machine.
This software may be freely used, but not sold for profit.
The user assumes all risk associated with the use of software.
Please include this documentation when distributing this software.
September 11, 1989
James Haley
TSA: (219) 478-1164
71121,3644