Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

VBscript to apply .reg file

 
   Windows XP Arc2 (Home) -> Customize RSS
Next:  macro's  
Author Message
Damo_Suzuki

External


Since: May 02, 2006
Posts: 3



(Msg. 1) Posted: Tue May 02, 2006 5:37 am
Post subject: VBscript to apply .reg file
Archived from groups: microsoft>public>windowsxp>customize (more info?)

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

 >> Stay informed about: VBscript to apply .reg file 
Back to top
Login to vote
Homer J. Simpson

External


Since: Apr 07, 2004
Posts: 109



(Msg. 2) Posted: Tue May 02, 2006 3:53 pm
Post subject: Re: VBscript to apply .reg file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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.

 >> Stay informed about: VBscript to apply .reg file 
Back to top
Login to vote
Homer J. Simpson

External


Since: Apr 07, 2004
Posts: 109



(Msg. 3) Posted: Wed May 03, 2006 9:37 am
Post subject: Re: VBscript to apply .reg file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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.
 >> Stay informed about: VBscript to apply .reg file 
Back to top
Login to vote
Homer J. Simpson

External


Since: Apr 07, 2004
Posts: 109



(Msg. 4) Posted: Wed May 03, 2006 10:27 am
Post subject: Re: VBscript to apply .reg file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> If all its doing is changing the screen res, it can't be that big Smile

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.
 >> Stay informed about: VBscript to apply .reg file 
Back to top
Login to vote
Damo_Suzuki

External


Since: May 02, 2006
Posts: 3



(Msg. 5) Posted: Thu May 04, 2006 2:39 am
Post subject: Re: VBscript to apply .reg file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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\Common\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\Common\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\Common\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
 >> Stay informed about: VBscript to apply .reg file 
Back to top
Login to vote
Homer J. Simpson

External


Since: Apr 07, 2004
Posts: 109



(Msg. 6) Posted: Thu May 04, 2006 9:49 am
Post subject: Re: VBscript to apply .reg file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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... Wink
 >> Stay informed about: VBscript to apply .reg file 
Back to top
Login to vote
Display posts from previous:   
   Windows XP Arc2 (Home) -> Customize All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]