Soulement wrote:
>Take heart, this used to P*ss me off, too. I now use Winzip and its always
>making unzipping easier, almost carefree.

Create this BATch file and you won't have any problems what so ever. Just
type "unpack file" and the file named file.rar, file.arj, file.zip or
file.exe will be unpacked into the directory "file". If a problem occours
(that is if the unpacking didn't finish - either user intervention or the
file is corrupted) the directory is removed (change to "deltree/y" to
remove the directory even if some parts were succesfully unpacked).
It also prints file_id.diz and files.bbs if they exists.


-- UnPack.Bat --

@Echo Off
If Exist %1.rar Goto Rar
If Exist %1.arj Goto Arj
If Exist %1.zip Goto Zip
If Exist %1.exe Goto Exe
Echo No matches found!
Goto End

:Rar
Md %1
Rar x %1.rar %1
if errorlevel 1 goto error2
Goto Files

:Arj
Md %1
Arj x %1.arj %1
if errorlevel 1 goto error2
Goto Files

:Zip
Md %1
Pkunzip -d %1.zip %1
if errorlevel 1 goto error2
Goto Files

:error2
echo Something didn't work as it should!
rd %1
goto end

:Exe
Md %1
Copy %1.exe %1
Cd %1
%1.exe

:Files
Cd %1
If Exist file_id.diz Goto file1
If Exist files.bbs Goto file2
Goto End

:file1
More < file_id.diz
Goto End

:file2
More < files.bbs

:End
//Bernie
http://hem1.passagen.se/bernie/ DOS programs, Star Wars ...

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.

Reply via email to