home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo Relocate the command interpreter
- echo By Prof. Timo Salmi, ts@chyde.uwasa.fi, Sat 9-Nov-1991
- echo.
-
- rem The idea of this simple batch is to show how you can alter
- rem the location of your command interpreter. On my system r: is
- rem the ramdisk. This can be useful e.g. if you handle floppy disks
- rem which do not have the system files on them.
-
-
- if not exist r:\nul goto _no_r
- if not exist c:\command.com goto _no_com
- if not exist r:\cmand\nul md r:\cmand
-
- copy c:\command.com r:\cmand\command.com
- set comspec=r:\cmand\command.com
- attrib +r r:\cmand\command.com
- goto _out
-
- :_no_r
- echo Drive R: not available, adjust the batch a conform with your configiration.
- goto _out
-
- :_no_com
- echo File COMMAND.COM not found.
- goto _out
-
- :_out
- echo on
-