home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
CHIPCD_3_98.iso
/
software
/
testsoft
/
exchange
/
wxrename.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1997-08-25
|
2KB
|
78 lines
@echo off
rem ***************** Parse Command Line ********************
if "%2" == "" goto usage
if not exist %2 goto nodir
if "%1" == "install" goto install
if "%1" == "INSTALL" goto install
if "%1" == "uninstall" goto uninstall
if "%1" == "UNINSTALL" goto uninstall
goto usage
rem ********************* Install ***************************
:install
echo.
echo.Converting short names to long names...
rem --- ADD NEW CONVERSIONS HERE
rem --- MAKE SURE YOU DECONVERT BELOW ALSO
rename %2\calendar\calendar.cls Calendar.class
rename %2\calendar\superdat.cls SuperDate.class
rename %2\calendar\datenav.cls DateNavigator.class
rename %2\calendar\datesel.cls DateNavigatorSelection.class
rename %2\calendar\global.cls Global.class
rename %2\calendar\msgbox.cls MsgBox.class
rename %2\calendar\gotodate.cls GotoDate.class
rem --- END CONVERSIONS
echo.Done
echo.
goto end
rem ******************** Uninstall **************************
:uninstall
echo.
echo.Converting long names to short names...
rem --- ADD NEW DECONVERSIONS HERE
rem --- MAKE SURE YOU CONVERT ABOVE ALSO
rename %2\calendar\Calendar.class calendar.cls
rename %2\calendar\SuperDate.class superdat.cls
rename %2\calendar\DateNavigator.class datenav.cls
rename %2\calendar\DateNavigatorSelection.class datesel.cls
rename %2\calendar\Global.class global.cls
rename %2\calendar\MsgBox.class msgbox.cls
rename %2\calendar\GotoDate.class gotodate.cls
rem --- END DECONVERSIONS
echo.Done
echo.
goto end
rem ****************** Display Usage ************************
:usage
echo.
echo.Syntax:
echo.
echo.wxrename [install or uninstall] path
echo.
echo.install convert short to long
echo.uninstall convert long to short
echo.path the path to the webdata
echo.
goto end
rem *************** No Such Directory ***********************
:nodir
echo.
echo.There is no directory called %2.
echo.
goto end
rem ********************** Finished *************************
:end