Jump to content

Recommended Posts

Posted

Here's a simple way of determining what hardware you are on if you are trying to make a universal image for laptops and PCs. I make the assumption that if a modem is found that it is a laptop:

@echo off

C:\install\temp\pci32 > C:\install\temp\dev.txt

C:\winnt\system32\find /i "modem" C:\install\temp\dev.txt >NUL

if errorlevel 1 echo "Not a laptop, do nothing"

if not errorlevel 1 "C:\install\temp\profcopy.cmd"

Here's a copy of profcopy.cmd that copies over a Default User Profile with the number lock disabled in the profile and forces the video resolution to 1024x768:

C:\winnt\system32\xcopy C:\install\temp\laptop\profiles "C:\documents and settings" /o /f /e /y /h /r

C:\winnt\regedit /s "C:\install\temp\numlockd.reg"

C:\install\temp\setres.exe 1024 768 32 75

PCI32 (Win32 console program) here: http://members.datafast.net.au/dft0802/downloads.htm

setres: http://www.iansharpe.com/downloads.php


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...