MSFN Forum: Neat Hardware Detect Script - MSFN Forum

Jump to content



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

Neat Hardware Detect Script Rate Topic: -----

#1 User is offline   aleinss 

  • Group: Members
  • Posts: 4
  • Joined: 19-February 05

Posted 19 February 2005 - 07:43 PM

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.dataf...2/downloads.htm

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


Share this topic:


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

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



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