This is unfortunately one of the useful items which you cannot do programmatically on Windows. You *can* actually script a resolution change using WSH; it has to actually "call" the control panel applet for display control, then do a "sendkeys" to change it.
You can also use a third-party tool, MultiRes, which is free, to do it from a batch file. Here's a direct quote from a 2002.01.05 post by Torgeir Bakken in the microsoft.public.scripting.wsh newsgroup: --start quoting--- "...It's available at http://168.144.101.149/files/multires.exe (Entech Taiwan), and can be used to set screen resolution, color depth, and refresh rate. Normally it runs with an icon in the notification area. But it's also possible to run it in non-resident command mode in a batch file. There's more info at http://www.entechtaiwan.com/multires.htm exaple on a command line: Set 800x600, 32-bit color, 85Hz refresh d:\multires\multires.exe /800,600,32,85 /exit ..." --stop quoting--- The entire thread can be retrieved via Google using the following URL (watch for URL wrap): http://groups.google.com/groups?[EMAIL PROTECTED] ----- Original Message ----- From: "Jim Theriot" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday/2002 January 30 15:50 Subject: changing screen resolution 'over the wire' : Hi, : : I didn't find the answer to this in the archives; apologies in advance if : this is the wrong list for it. : : I have a vnc server running on my Windows machine at work. I generally set : the screen resolution to 800x600 before I leave work, to make it easier to : access it from home (where I have a lower-resolution monitor). It's a bit : tricky to change the resolution from home, because an exception is thrown : and the connection is lost before I can confirm that the new resolution is : displaying properly. : : Until last week I was running Windows NT. I figured out that I can 'test' : the new resolution, which doesn't require confirmation, after which changing : the resolution also doesn't require confirmation (I have to establish the : connection again, but that's no sweat). But now I have upgraded to Windows : 2000, and I don't find a 'test' button, or any other way to change : resolution without confirming. Does anyone know a way to avoid the : exception, or some hack to 'batch up' the resolution change, or ...? : : Thanks, : Jim : --------------------------------------------------------------------- : To unsubscribe, mail [EMAIL PROTECTED] with the line: : 'unsubscribe vnc-list' in the message BODY : See also: http://www.uk.research.att.com/vnc/intouch.html : --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, mail [EMAIL PROTECTED] with the line: 'unsubscribe vnc-list' in the message BODY See also: http://www.uk.research.att.com/vnc/intouch.html ---------------------------------------------------------------------