A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

VBscript to apply .reg file



 
 
Thread Tools Display Modes
  #1  
Old May 2nd 06, 01:37 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 2nd 06, 08:53 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 3rd 06, 12:44 AM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 3rd 06, 02:37 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 3rd 06, 02:54 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 3rd 06, 03:27 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 4th 06, 10:39 AM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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  
Old May 4th 06, 02:49 PM posted to microsoft.public.windowsxp.customize
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

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






All times are GMT +1. The time now is 08:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.