MSFN Forum: Screen resolution in WinPE - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Screen resolution in WinPE Rate Topic: -----

#1 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 05 February 2004 - 11:52 AM

How to:
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)


This post has been edited by likuidkewl: 05 February 2004 - 12:11 PM



#2 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 08 February 2004 - 11:29 AM

*Bump*
So has anyone used this, or made any improvements?
I also have added a virus scanner to mine it is Mcafee's 32 bit scanner for windows, search for dailyscan on google and you will find it.

#3 User is offline   bombtrack 

  • boooom
  • PipPip
  • Group: Members
  • Posts: 161
  • Joined: 02-January 04

Posted 09 February 2004 - 11:50 PM

likuidkewl, on Feb 8 2004, 11:29 AM, said:

*Bump*
So has anyone used this, or made any improvements? 
I also have added a virus scanner to mine it is Mcafee's 32 bit scanner for windows, search for dailyscan on google and you will find it.

i havent used barts pe builder in a while, but wasnt setres included there ?

#4 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 10 February 2004 - 05:32 PM

Yes, but I am using Windows Preinstallation Environment not Barts.

#5 User is offline   ChrisBaksa 

  • Member
  • PipPip
  • Group: Members
  • Posts: 230
  • Joined: 05-March 04

Posted 05 March 2004 - 07:22 AM

Set Res is a great little app. But I had a small issue with it that the author of setres helped me out with. I use PE to build about a dozen different servers. And some of the graphics cards are old and can't support teh res I set. What would happen is the setres app would stop and show me the error that it could not set the mode. I couldn't have that. I needed it continue no matter what.

The author provided me a version that still displayes the error but releases but ends the application without the need for a keypress.

Kudos to the Set Res guy!

Chris :)

#6 User is offline   serialzs 

  • Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 21-December 03

Posted 05 March 2004 - 10:32 AM

Read this Page

here you can set your resolution with GUI. :)


-=[serialzs]=-

#7 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 05 March 2004 - 10:46 AM

serialzs, on Mar 5 2004, 10:32 AM, said:

Read this Page

here you can set your resolution with GUI. :)


-=[serialzs]=-

Nice page!

#8 User is offline   gregster 

  • Group: Members
  • Posts: 1
  • Joined: 08-April 09

Posted 09 April 2009 - 09:51 AM

Nice tool, but it doesn't work in winpe 64-bit, get this error: "the system cannot execute the specified program".
Is there an alternative that does work in 64-bit winpe?

#9 User is offline   allanf 

  • Junior
  • Pip
  • Group: Members
  • Posts: 65
  • Joined: 01-June 07

Posted 09 April 2009 - 07:09 PM

Galapo compiled a stand-alone x64 SetResoution.exe which was tested under WinBuilder Project pe21 (based on WinPE 2.1 x64 or x86).

Download:
http://www.boot-land.net/forums/index.php?...ost&p=19442

x64 Testing:
http://www.boot-land.net/forums/index.php?...ost&p=36073

It was untested by him, and I think there should be a general disclaimer that changing resolutions may cause hardware damage, although I (and many others) have used the x86 version without problem.

Regards :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy