Search found 17 matches
- 22 May 2014 12:35
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
Re: Automated setup of DOS command window
wow thanks penpen, too much to fathom tonight, I'll take a look tomorrow.
- 22 May 2014 12:31
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
Re: Automated setup of DOS command window
@Squashman ah yes sorry
- 22 May 2014 07:44
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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:
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:
- 22 May 2014 06:46
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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.
HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe
This is the problem: %SystemRoot% has a backslash in it.
- 22 May 2014 00:12
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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...
- 21 May 2014 14:50
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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.
@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.
- 21 May 2014 14:38
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
Re: Automated setup of DOS command window
Maybe it solves your problem, not mine... sigh
- 21 May 2014 14:01
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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!
- 21 May 2014 12:04
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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.
I didn't see a need so I ignored it.
- 21 May 2014 11:03
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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
- 21 May 2014 10:42
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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...
- 21 May 2014 10:15
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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
I don't know why the upload to dropbox is so slow, jpg is only 138k
hopefully be there soon
- 21 May 2014 10:03
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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:
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.
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.
- 21 May 2014 09:48
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155
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...
- 21 May 2014 09:37
- Forum: DOS Batch Forum
- Topic: Automated setup of DOS command window
- Replies: 39
- Views: 40155