If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
VBscript to apply .reg file
hi,
I have a .reg file that changes the screen resolution. I need this .reg file to be applied through a vbscript, Anyone have any idea how to do this ? thanks in advance |
Ads |
#2
|
|||
|
|||
VBscript to apply .reg file
hi,
I have a .reg file that changes the screen resolution. I need this .reg file to be applied through a vbscript, Anyone have any idea how to do this ? thanks in advance Does it *have* to be through VBScript? Since you're posting this in an XP-specific newsgroup, have a look at the REG command. Specifically, REG IMPORT. |
#3
|
|||
|
|||
VBscript to apply .reg file
Or alternatively, REGEDIT /S name of REG file
However, a VB Script can be used to manipulate the Registry directly. See http://msdn.microsoft.com/scripting. Download the documentation for VB Script and the Windows Script Host. -- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "Homer J. Simpson" wrote in message ... hi, I have a .reg file that changes the screen resolution. I need this ..reg file to be applied through a vbscript, Anyone have any idea how to do this ? thanks in advance Does it *have* to be through VBScript? Since you're posting this in an XP-specific newsgroup, have a look at the REG command. Specifically, REG IMPORT. |
#4
|
|||
|
|||
VBscript to apply .reg file
However, a VB Script can be used to manipulate the Registry directly.
I was tempted to suggest that, but given that the original poster already has his .reg file, and without knowing exactly how big that file is, it's probably easier to just import it. |
#5
|
|||
|
|||
VBscript to apply .reg file
If all its doing is changing the screen res, it can't be that big :-)
-- Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com -------------------------------- Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm -------------------------------- Please reply only to the newsgroup so all may benefit. Unsolicited e-mail is not answered. "Homer J. Simpson" wrote in message ... However, a VB Script can be used to manipulate the Registry directly. I was tempted to suggest that, but given that the original poster already has his .reg file, and without knowing exactly how big that file is, it's probably easier to just import it. |
#6
|
|||
|
|||
VBscript to apply .reg file
If all its doing is changing the screen res, it can't be that big :-)
Throw in a binary field, and it's just easier to import a reg file than to create the entry in VBScript. :-p To the original poster: care to post the content of your .reg file? I'm curious to know what registry entries you're editing to change resolution. |
#7
|
|||
|
|||
VBscript to apply .reg file
Here is the .reg file . I need two different resolutions , one for when
the laptop is docked and one for when its using an external LCD Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\IBM\NPdirect\Data\Commo n\Presentation Schemes\Dual Display] "UserCreatedScheme"=dword:00000001 "OrderOfScheme"=dword:00000000 "DisplayDeviceMode"=dword:00000003 "AutomaticOpenFile"=dword:00000001 "PresentationFileName"="" "CleanDesktop"=dword:00000000 "DisablePMTimers"=dword:00000000 "DisableScreenSaver"=dword:00000000 "EnableThinkLight"=dword:00000000 "EnableWallPaper"=dword:00000000 "WallpaperStyle"=dword:00000001 "WallPaperFileName"="" "IsCapture"=dword:00000000 "CRTisProjector"=dword:00000000 "ShowScheme"=dword:00000001 "ExtendedPosition"=dword:00000001 [HKEY_CURRENT_USER\Software\IBM\NPdirect\Data\Commo n\Presentation Schemes\Dual Display\00] "DisplayDeviceMode"=dword:00000003 "Resolution"=dword:03000400 "ColorDepth"=dword:00000020 "RefreshRate.LCD"=dword:00000000 "RefreshRate"=dword:00000000 "TVSignalFormat"=dword:00000000 "CRTCConfig"=dword:00000001 "DeviceForCRTC.0"=dword:00000001 "DeviceForCRTC.1"=dword:00000000 [HKEY_CURRENT_USER\Software\IBM\NPdirect\Data\Commo n\Presentation Schemes\Dual Display\01] "DisplayDeviceMode"=dword:00000003 "Resolution"=dword:04000500 "ColorDepth"=dword:00000020 "RefreshRate.LCD"=dword:00000000 "RefreshRate"=dword:0000003c "TVSignalFormat"=dword:00000000 "CRTCConfig"=dword:00000002 "DeviceForCRTC.0"=dword:00000000 "DeviceForCRTC.1"=dword:00000002 |
#8
|
|||
|
|||
VBscript to apply .reg file
Here is the .reg file . I need two different resolutions , one for when
the laptop is docked and one for when its using an external LCD snip Oooh, proprietary IBM stuff... ;-) |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
product or way to disable xp from modifying file Last Modified Dates for daylight savings time? | Mikie | General XP issues or comments | 0 | April 9th 06 12:32 AM |
Bloody hound | SirWhale | Windows XP Help and Support | 16 | February 25th 06 01:20 AM |
Filename Convention | Hans Schoeni | General XP issues or comments | 1 | February 21st 06 07:33 PM |
oops | needlove | Performance and Maintainance of XP | 5 | July 8th 05 04:49 PM |
page file | LeeRay | General XP issues or comments | 10 | April 6th 05 09:06 AM |