Re: Command Prompt Window Defaults - Programatically?
You asked how to import from a reg file so I told you to
use reg.exe.
Now you ask where DOS box defaults are stored which I
already told you in my first reply.
So, again, go to this registry key:
[HKEY_CURRENT_USER\Console]
and find the executable that you want to remotely set.
For example:
To export the command window settings for "contig.exe"
export this key, as shown:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console\C:_Program Files_Hardware_PowerDefrag_Contig.exe]
"ScreenBufferSize"=dword:09c40064
"WindowPosition"=dword:01160221
"HistoryBufferSize"=dword:000003e7
"NumberOfHistoryBuffers"=dword:00000005
"HistoryNoDup"=dword:00000000
"WindowSize"=dword:00280064
I hope you understand now.
ju.c
"Chavvy" <i_p_w_uk@yahoo.co.uk> wrote in message news:2f93194f-4341-422d-b841-b62634a661e7@y71g2000hsa.googlegroups.com...
> On Oct 5, 12:02 pm, "ju.c" <bibidybubidyb...@mailnator.com> wrote:
>> You're welcome.
>>
>> Please don't delete previous posts. Users that use
>> News Readers, like WLM or OE, may delete old posts.
>> When a new post is added without the previous posts
>> they cannot see it. Thank you for understanding.
>>
>> To import the registry file, use reg.exe
>>
>> You can read the links that I have posted below to
>> learn about reg.exe commands. It is very easy.
>>
>> An example to imort a reg file:
>>
>> From the 'Run box', 'Command Prompt' or a 'Batch File'
>> enter:
>>
>> reg import "C:\Path To\RegFile.reg"
>>
>> REG.exe Exampleshttp://www.ss64.com/nt/reg.html
>>
>> Managing the Windows Registry from the Command Prompt with Reg.exehttp://commandwindows.com/reg.htm
>>
>> What can the REG.EXE command do in Windows XP?http://www.petri.co.il/reg_command_in_windows_xp.htm
>>
>> File Downloads (reg.exe):
>> Command Line Registry Editshttp://www.chaminade.org/mis/Articles/RegistryEdit.htm
>>
>> ju.c
>>
>> "Chavvy" <i_p_w...@yahoo.co.uk> wrote in messagenews:a17711c3-2ca0-4138-9d86-64114c0703c9@d1g2000hsg.googlegroups.com...
>> > Thanks for this.
>>
>> > Are you aware though how to do it from a reg file etc? Basically I
>> > need to remotely set the default on around 200 machines for a DOS app
>> > that is called from VB. The VB call cannot pass much through in terms
>> > of managing the DOS box size etc so want to get around this by easily
>> > modiying all defaults.
>>
>> > Cheers.
>
> IW:
>
> Thanks again. I am fairly comfortable with the different methods I
> have to deploy the change. My issue is still in identifying where
> these DOS box defaults are stored, unless I have missed something from
> your post.
>
> Regards