Search found 17 matches

by acferrad
22 May 2014 12:35
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

wow thanks penpen, too much to fathom tonight, I'll take a look tomorrow.
by acferrad
22 May 2014 12:31
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

@Squashman ah yes sorry :lol:
by acferrad
22 May 2014 07:44
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

Nope, still not working:

D:\>reg query "HKCU\Console\%%SystemRoot%%_system32_cmd.exe" /v FaceName
ERROR: The system was unable to find the specified registry key or value.

Here is my regedit view:
Image
by acferrad
22 May 2014 06:46
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

No, FaceName for me is not in the key Console, it is in a key beneath Console called %SystemRoot%_system32_cmd.exe:

HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe

This is the problem: %SystemRoot% has a backslash in it.
by acferrad
22 May 2014 00:12
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

That seems to work! Although I had hoped not to have to go into the registry as this needs Admin rights. Just tried to query this value: D:\>reg query "HKCU\Console\%SystemRoot%_system32_cmd.exe" /v FaceName ERROR: The system was unable to find the specified registry key or value. Since: S...
by acferrad
21 May 2014 14:50
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

@penpen
@foxidrive

So is there a code solution to items 1 and 3? The above solutions only work for me- not the other users that use my scripts.
by acferrad
21 May 2014 14:38
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

Maybe it solves your problem, not mine... sigh
by acferrad
21 May 2014 14:01
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

This all said, I'd still like to find a code solution to items 1 and 3 above, since I am writing scripts that others will use, and I can't rely on them to mess around with CMD properties!
by acferrad
21 May 2014 12:04
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

I'm sure I saw that when I found the powershell solution (above) to the buffer/window width/height issue. Check the powershell command.
I didn't see a need so I ignored it.
by acferrad
21 May 2014 11:03
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

I did all this but it does not work when you use START. But I have found a solution: start cmd /k newbatchfile.bat does keep the new default window settings, while: start "window title" newbatchfile.bat does not. So if you want a title, use the title command in newbatchfile.bat
by acferrad
21 May 2014 10:42
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

Thank you. However this is what I want to do from code! I am tired of reconfiguring these STARTed windows manually. Hence my original question. They only keep their settings sporadically. If I change the settings for the STARTed window and rerun aa.bat, it's OK. But if I change aa.bat to: start &quo...
by acferrad
21 May 2014 10:15
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

BTW tried as Admin, same problem.
I don't know why the upload to dropbox is so slow, jpg is only 138k
hopefully be there soon
by acferrad
21 May 2014 10:03
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

I know I am not wrong, see image below. Not sure how to embed images, let's try:
Image
https://dl.dropboxusercontent.com/u/3783578/Snap3.jpg

I have no spybot or teatimer whatever that is. I tried the same thing on my work laptop, it did the same thing.
by acferrad
21 May 2014 09:48
Forum: DOS Batch Forum
Topic: Automated setup of DOS command window
Replies: 39
Views: 14362

Re: Automated setup of DOS command window

No you're missing the point. I don't open up the second DOS window, the first BAT file does. To see this, open up a cmd window, this will have your default icon settings (change them to make them different from the Windows default). Now create a BAT file, say aa.bat containing: start "new windo...