I changed my resolution by getting this utility(setres.exe) and then wrote a batch file for it, I also in the preceeding batch file used a program called getcd.exe, both of these executables were placed in my %CDROM%\i386\system32 folder along with my batch files, setres.bat and install.bat(for install of xp), and I also edited my startnet.cmd in same folder it will launch the setres.bat. To get the exe's just type them in google and you will find them. My batch files are below.
As always your HAVE to edit them to fit your system!!!
STARTNET.CMD
regsvr32 /s netcfgx.dll factory -minint netcfg -v -winpe net start dhcp net start nla SetRes.bat
SetRes.bat
CLS
@ECHO off
TITLE "WinPE Recovery & XP Pro install disk..."
@ECHO off
ECHO.
ECHO Select your screen resolution below...
ECHO *If your resolution is not supported
ECHO WinPE will revert it to 640x480*
FOR /F "tokens=*" %%a in ('getcd.exe') do set CDROM=%%a
@ECHO off
:start
ECHO.
ECHO 1. 640x480
ECHO 2. 800x600
ECHO 3. 1024x768
ECHO 4. 1280x1024
ECHO 5. 1600x1200
ECHO 6. Use default
set choice=
set /p choice=Type the number you would like to do?:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto 640
if '%choice%'=='2' goto 800
if '%choice%'=='3' goto 1024
if '%choice%'=='4' goto 1280
if '%choice%'=='5' goto 1600
if '%choice%'=='6' goto default
ECHO "%choice%" invalid! Try again...
ECHO.
goto start
:640
ECHO Setting resolution to 640x480...
@echo off
%CDROM%\i386\system32\setres.exe h640 v480 b32
CLS
ECHO.
ECHO To install Windows XP type "Install" without quotes...
goto end
:800
ECHO Setting resolution to 800x600...
@echo off
%CDROM%\i386\system32\setres.exe h800 v600 b32
CLS
ECHO.
ECHO To install Windows XP type "Install" without quotes...
goto end
:1024
ECHO Setting resolution to 1024x768...
@echo off
%CDROM%\i386\system32\setres.exe h1024 v768 b32
CLS
ECHO.
ECHO To install Windows XP type "Install" without quotes...
goto end
:1280
ECHO Setting resolution to 1280x1024...
@echo off
%CDROM%\i386\system32\setres.exe h1280 v1024 b32
CLS
ECHO.
ECHO To install Windows XP type "Install" without quotes...
goto end
:1600
ECHO Setting resolution to 1600x1200...
@echo off
%CDROM%\i386\system32\setres.exe h1600 v1200 b32
CLS
ECHO.
ECHO To install Windows XP type "Install" without quotes...
goto end
:default
ECHO Using default options...
CLS
ECHO.
ECHO To install Windows XP type "Install" without quotes...
goto end
:end
Install.bat
CLS
@ECHO off
TITLE "WinPE Recovery & XP Pro install disk..."
@ECHO off
ECHO.
ECHO Select options below...
FOR /F "tokens=*" %%a in ('getcd.exe') do set CDROM=%%a
@ECHO off
:start
ECHO.
ECHO 1. Install XP PRO (Unattended)
ECHO 2. Return to command shell
set choice=
set /p choice=Type the number you would like to do?:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto Install
if '%choice%'=='2' goto No
ECHO "%choice%" invalid! Try again...
ECHO.
goto start
:Install
ECHO Starting Installation...
@echo off
set AnswerFile=%CDROM%\XP_PRO\I386\unattend.txt
set SetupFiles=%CDROM%\XP_PRO\I386
%CDROM%\XP_PRO\I386\winnt32.exe /s:%SetupFiles% /unattend:%AnswerFile%
goto end
:No
ECHO Going back to Shell...
CLS
goto end
:end
I decided to add the files as an atachment, so most of the work is done for you!
Have fun!
The getcd.exe is only a backup, you might be able to not use it and just put the direct link to your CDROM drive in your .bat file. I found that sometimes this works and sometimes not so i just play it safe, it also helps out with other pc's you might be working on.
Please post sucess or failures, or your version so we all might make this work better!
Attached File(s)
-
neededEXEs.rar (45.74K)
Number of downloads: 170
This post has been edited by likuidkewl: 05 February 2004 - 12:11 PM



Help

Back to top








