home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
gw
/
gwusc2.exe
/
GWPAT2.EXE
/
DOSPNSET.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-08-29
|
2KB
|
91 lines
REM --------------------------------------------
REM This batch file fixes a span set.
REM It takes two parameters:
REM Param 1: Domain Directory
REM Param 2: The name of the span set to fix.
REM --------------------------------------------
ECHO.
ECHO !!! STARTING PATCH PROCESS FOR %2 SPAN SET
REM
cd tmp
REM
ECHO !!! Copying %2 span set to tmp directory.
REM
copy %1\WPOFFICE\OFWIN40\SETUP\%2.SPN >NUL
copy %1\WPOFFICE\OFWIN40\SETUP\%2.S0* >NUL
REM
ECHO !!! Unpacking the Span Set
REM
copy ..\spanx.exe >NUL
spanx %2 * *.* >NUL
REM
REM Delete the old span set (keeps disk usage down)
REM
del %2.SPN >NUL
del %2.S0* >NUL
REM
ECHO !!! Applying Patch to span set files
REM
..\patch -q ..\%2.RTP
if exist PATCH.ERR goto exit
REM
ECHO !!! Recompressing Span Set files.
REM
copy ..\sqp.exe >NUL
copy ..\%2.bat >NUL
call %2.bat
REM
REM Delete all files except .SQP file (keeps disk usage down)
REM
attrib +R %2.sqp
..\kdel /q *.* >NUL
attrib -R %2.sqp
REM
ECHO !!! Remaking the %2 span set.
REM
copy ..\span.exe >NUL
span %2.sqp %2
..\fixdate2
REM
REM Delete the old span set (in domain directory)
REM
del %1\WPOFFICE\OFWIN40\SETUP\%2.SPN
del %1\WPOFFICE\OFWIN40\SETUP\%2.s0*
REM
ECHO !!! Copying new %2 span set to domain directory.
REM
copy %2.spn %1\WPOFFICE\OFWIN40\SETUP >NUL
copy %2.s0* %1\WPOFFICE\OFWIN40\SETUP >NUL
REM
REM Cleanup the tmp directory.
REM
..\kdel /q *.* >NUL
:Exit
cd ..