William Allen posted another great example of RUNDLL's power:
From: William Allen (firstname.lastname@example.org) Subject: Re: Batch file for setting desktop settings & installing programs.. Newsgroups: alt.msdos.batch Date: 2001-12-02 23:05:46 PST "buda" wrote in message ...snip > Has anyone made a batch file that can change desktop > settings? The following are the settings I would like to > include in the batch file: > 1) change desktop size to 800 x 600. The following syntax can be used in a Batch file in Win9x to change screen resolution and colour depth: Examples: :: Set 8 bit colour on 800x600 display rundll deskcp16.dll,QUICKRES_RUNDLLENTRY 800x600x8 :: Set 16 bit colour on 800x600 display rundll deskcp16.dll,QUICKRES_RUNDLLENTRY 800x600x16 :: Set 24 bit colour on 1024x768 display rundll deskcp16.dll,QUICKRES_RUNDLLENTRY 1024x768x24 and so on. Don't use settings outside the recommended working range for your monitor. -- William Allen
This should work in Windows 95 and 98.
William Allen already warned not to use settings outside the recommended working range for your monitor.
I want to repeat that warning once more, since using the wrong settings could result in (physical) damage to your monitor.
Use these commands with extreme caution!
WMIC DesktopMonitor Get ScreenHeight,ScreenWidth /Format:List
page last uploaded: 2018-12-20, 10:47