BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 26d, 1h, 26m | CPU: 62% | MEM: 6018MB of 11130MB used
{The community for beta collectors}

Forum rules


Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 PostPost subject: makecab, modifype        Posted: Wed Apr 08, 2009 2:31 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Aug 24, 2006 12:09 am

Posts
520

Location
Glendale KY USA
Is there a program to do these 2 things in 1 package?


Top  Profile  YIM
 PostPost subject: Re: makecab, modifype        Posted: Wed Apr 08, 2009 10:37 pm 
Reply with quote
Donator
Offline

Joined
Tue Oct 17, 2006 8:26 pm

Posts
932
Yeah. A Batch file.


Top  Profile
 PostPost subject: Re: makecab, modifype        Posted: Thu Apr 09, 2009 11:36 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Aug 24, 2006 12:09 am

Posts
520

Location
Glendale KY USA
A friend made one for me
http://www.megaupload.com/?d=UKPGLKKS
Please test and give results.


Top  Profile  YIM
 PostPost subject: Re: makecab, modifype        Posted: Tue Apr 14, 2009 3:12 pm 
Reply with quote
dirtwarrior wrote:
Is there a program to do these 2 things in 1 package?
There is indeed..!

RentedMule wrote:
Yeah. A Batch file.
Exactly..!
it seems that the days of dos & it's simplicity are slowly fading away...

To answer your email regarding this DW, I have 2 batch files that'll do what
you're asking...
1st of all, pull your Win2000 CD out & pull the EXPAND.EXE & MAKECAB.EX_ from
the I386 folder, & extract the MAKECAB.EX_
Put both the expand & makecab into your System32 folder, find yourself a copy
of modifype.exe & place it in the System32 folder as well,
then make 2 batch files as listed below...

Copy this code into notepad & save it as Expand.bat
Code:
@ECHO OFF
ECHO.
IF NOT EXIST "%~1" GOTO END
SET EXT=%~x1
SET LCEXT=%EXT:~-1%
IF /I "%EXT%"==".CAB" GOTO DECOMPRESSCAB
IF "%LCEXT%"=="_" GOTO DECOMPRESSFILE
GOTO END
:DECOMPRESSCAB
MD "%~dpn1"
CD /D "%~dpn1"
CABARC.EXE -o -p X %1
IF NOT %ERRORLEVEL% EQU 0 PAUSE
GOTO END
:DECOMPRESSFILE
CD /D "%~dp1"
EXPAND.EXE -r %1
IF NOT %ERRORLEVEL% EQU 0 (PAUSE) ELSE (DEL /F /Q %1)
:END



Now copy this into notepad as well & save it as makecab.bat
Code:
@ECHO OFF
ECHO.
IF NOT EXIST "%~1" GOTO END
SET EXT=%~x1
SET LCEXT=%EXT:~-1%
IF /I "%EXT%"==".CAB" GOTO END
IF "%LCEXT%"=="_" GOTO END
IF EXIST "%~1\" GOTO COMPRESSCAB

IF EXIST "%TEMP%\modifype.tmp" DEL /F /Q "%TEMP%\modifype.tmp"
FOR /F "tokens=*" %%R IN ('MODIFYPE.EXE %~fs1 -c') DO SET MPEMSG=%%R
IF /I "%MPEMSG%"=="NO ERROR OCCURRED, HAVE A NICE DAY" GOTO COMPRESSFILE
IF /I "%MPEMSG%"=="FILE IS NOT A PE FILE" GOTO COMPRESSFILE
IF EXIST "%TEMP%\modifype.tmp" MOVE /Y "%TEMP%\modifype.tmp" %1>NUL
ECHO ERROR - MODIFYPE CAN'T PATCH "%~nx1"
PAUSE
GOTO END
:COMPRESSFILE

CD /D "%~dp1"
MAKECAB.EXE /D COMPRESSIONTYPE=LZX /D COMPRESSIONMEMORY=21 %1
IF NOT %ERRORLEVEL% EQU 0 (PAUSE) ELSE (DEL /F /Q %1)
GOTO END
:COMPRESSCAB
CD /D %1
CABARC.EXE -m LZX:21 -p -r N "%~f1.CAB" *.*
IF NOT %ERRORLEVEL% EQU 0 PAUSE
:END



Now place both of these files you just made into your System32 folder...
Now make a shortcut for each of them, & place the shortcuts into your
SendTo folder on the machines user account you're using,
EG: C:\Documents and Settings\Administrator\SendTo if you
use the Administrator account, or whatever your account is...
Now right click on a file to either "Expand" it or "Compress" it...
Let me know how you go, via mail preferrably.... :wink:


Top
 PostPost subject: Re: makecab, modifype        Posted: Wed Apr 15, 2009 12:35 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Aug 24, 2006 12:09 am

Posts
520

Location
Glendale KY USA
I will test it KO


Top  Profile  YIM
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 




Who is online

Users browsing this forum: BetaLH, LordKappa and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS