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. |
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Where are parameters for the window a bat file opens
Using XP
Where are parameters for the window a bat file opens Earlier, in one of these groups iirc, I showed how to make a cmd box or a TCC/LE box fill the screen, and have a scroll bar on the right, by creating an icon that calls either cmd or tccle, and by setting the Properties/Layout Width to 240, or at least some value higher than 80. And how one could change the background color and the font size in other properties tabs. That works great, except I have to start the box first and then type in the name of my bat file. I'd like to just click on the .bat file like I used to, but then it doesn't matter what settings some uninvolved icon has. So I figured it would be in Associations and I looked at Folder Options / File Types to see what settings I could change for .bat files. Well, it turns out .bat doesn't have an entry in File Types. Neither does .exe, com, sys, or scr. I guess that's why they call it FILE types and not EXTENSIONS. So where are the parameters for a window opened up when one clicks on a bat file. Specifically I want to make changes to the layout width, the background color, (maybe the text color), and the font size. I know they're in there somewhere. TIA |
Ads |
#2
|
|||
|
|||
Where are parameters for the window a bat file opens
micky wrote:
Using XP Where are parameters for the window a bat file opens Earlier, in one of these groups iirc, I showed how to make a cmd box or a TCC/LE box fill the screen, and have a scroll bar on the right, by creating an icon that calls either cmd or tccle, and by setting the Properties/Layout Width to 240, or at least some value higher than 80. And how one could change the background color and the font size in other properties tabs. That works great, except I have to start the box first and then type in the name of my bat file. I'd like to just click on the .bat file like I used to, but then it doesn't matter what settings some uninvolved icon has. So I figured it would be in Associations and I looked at Folder Options / File Types to see what settings I could change for .bat files. Well, it turns out .bat doesn't have an entry in File Types. Neither does .exe, com, sys, or scr. I guess that's why they call it FILE types and not EXTENSIONS. So where are the parameters for a window opened up when one clicks on a bat file. Specifically I want to make changes to the layout width, the background color, (maybe the text color), and the font size. I know they're in there somewhere. TIA They say to use "Properties" of the window here. There are some adjustments in the resulting dialog. Kinda like the controls on XTerm. http://www.7tutorials.com/how-customize-command-prompt And HKCU\Console may contain some registry settings here. This procedure is for deleting the settings, but you can use it to have a look instead. http://www.7tutorials.com/how-reset-...ershell-window I looked in my WinXP registry, and there is only one customized window type in there. And that is used for the GhostScript console window. The registry entries are ColorTable00 .... ColorTable15 CursorSize FaceName FontFamily FontSize FontWeight FullScreen HistoryBufferSize InsertMode NumberOfHistoryBuffers PopupColors QuickEdit ScreenBufferSize ScreenColors WindowSize I suspect if you customize Command Prompt, there would be a window position option as well. Paul |
#3
|
|||
|
|||
Where are parameters for the window a bat file opens!
In microsoft.public.windowsxp.general, on Fri, 04 Sep 2015 19:08:58
-0400, micky wrote: Using XP Where are parameters for the window a bat file opens Earlier, in one of these groups iirc, I showed how to make a cmd box or a TCC/LE box fill the screen, and have a scroll bar on the right, by creating an icon that calls either cmd or tccle, and by setting the Properties/Layout Width to 240, or at least some value higher than 80. And how one could change the background color and the font size in other properties tabs. That works great, except I have to start the box first and then type in the name of my bat file. I'd like to just click on the .bat file like I used to, but then it doesn't matter what settings some uninvolved icon has. So I figured it would be in Associations and I looked at Folder Options / File Types to see what settings I could change for .bat files. Well, it turns out .bat doesn't have an entry in File Types. Neither does .exe, com, sys, or scr. I guess that's why they call it FILE types and not EXTENSIONS. So where are the parameters for a window opened up when one clicks on a bat file. Specifically I want to make changes to the layout width, the background color, (maybe the text color), and the font size. I know they're in there somewhere. I don't know where they are stored, but I found out where to set them. I Click on a .bat file to have it open a cmd window. Then right click the upper left corner and left click Properties. I had sort of assumed that the properties were as fleeting as the window, but they're not. In Layout, I was able to change Width to 240, and I was able to make the font larger (It was hard to read where I was sitting. It might have been big enough now that I'm here.) but I wasn't able to make the background blue. The options were not exactly the same as when there was a shortcut, I'm on a new computer now, and the resolution is lower, I think, so instead of turning 80 to 240, I think I had to use 198 or 200. Trial and error. Only has to be set once. TIA You're welcome. Of course I'm the OP! |
#4
|
|||
|
|||
Where are parameters for the window a bat file opens!
In message , micky
writes: In microsoft.public.windowsxp.general, on Fri, 04 Sep 2015 19:08:58 -0400, micky wrote: Using XP Where are parameters for the window a bat file opens Earlier, in one of these groups iirc, I showed how to make a cmd box or a TCC/LE box fill the screen, and have a scroll bar on the right, by creating an icon that calls either cmd or tccle, and by setting the Properties/Layout Width to 240, or at least some value higher than 80. [] I don't know where they are stored, but I found out where to set them. I Click on a .bat file to have it open a cmd window. Then right click the upper left corner and left click Properties. I had sort of assumed that the properties were as fleeting as the window, but they're not. In Layout, I was able to change Width to 240, and I was able to make the [] Does this remember if you select true character mode, with Alt-Enter? -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf As we journey through life, discarding baggage along the way, we should keep an iron grip, to the very end, on the capacity for silliness. It preserves the soul from desiccation. - Humphrey Lyttelton quoted by Barry Cryer in Radio Times 10-16 November 2012 |
#5
|
|||
|
|||
Where are parameters for the window a bat file opens!
In microsoft.public.windowsxp.general, on Sat, 26 Sep 2015 10:18:14
+0100, "J. P. Gilliver (John)" wrote: In message , micky writes: In microsoft.public.windowsxp.general, on Fri, 04 Sep 2015 19:08:58 -0400, micky wrote: Using XP Where are parameters for the window a bat file opens Earlier, in one of these groups iirc, I showed how to make a cmd box or a TCC/LE box fill the screen, and have a scroll bar on the right, by creating an icon that calls either cmd or tccle, and by setting the Properties/Layout Width to 240, or at least some value higher than 80. [] I don't know where they are stored, but I found out where to set them. I Click on a .bat file to have it open a cmd window. Then right click the upper left corner and left click Properties. I had sort of assumed that the properties were as fleeting as the window, but they're not. In Layout, I was able to change Width to 240, and I was able to make the [] Does this remember if you select true character mode, with Alt-Enter? Isn't alt-enter the same thing as right clicking on the upper left corner? I think so, so yes, it remembers. Hmmm. I haven't checked if it remembers after you close Windows and restart, and my computer failed last Sunday, and I'm on another one with no bat files yet. So I can't check. But changing the width doesn't take much time and it woudl be worth it to me to have the wider page even if I have to do it each windows session. Plus the scroll bar I like, and I used, even though one can only scroll back a couple hundred lines. Although the scroll bar actually covers up 2 or 3 characters if a line is that long. and there might not be a left-right scroll bar. . |
#6
|
|||
|
|||
Where are parameters for the window a bat file opens!
In message , micky
writes: In microsoft.public.windowsxp.general, on Sat, 26 Sep 2015 10:18:14 +0100, "J. P. Gilliver (John)" wrote: In message , micky writes: In microsoft.public.windowsxp.general, on Fri, 04 Sep 2015 19:08:58 -0400, micky wrote: Using XP Where are parameters for the window a bat file opens [] I don't know where they are stored, but I found out where to set them. I Click on a .bat file to have it open a cmd window. Then right click the upper left corner and left click Properties. I had sort of assumed that the properties were as fleeting as the window, but they're not. [] Does this remember if you select true character mode, with Alt-Enter? Isn't alt-enter the same thing as right clicking on the upper left Not on my system (XP SP3): I open a command window (Start | Programs | Accessories | Command Prompt, or Start | Run | "cmd"). If I right-click on the upper left corner, it does the same as if I left-click: brings up a menu with restore (I'm not going to keep typing capital letters), move, size, minimise, maximise, close, edit, defaults, and properties. If I Alt-Enter, in contrast, it gives me true full-screen - not the same as maximise. (For those who haven't seen this before and find it alarming: Alt-Enter again restores matters.) corner? I think so, so yes, it remembers. Hmmm. I haven't checked [] Although the scroll bar actually covers up 2 or 3 characters if a line is that long. and there might not be a left-right scroll bar. . Alt-Enter removes all trace of scroll bars ... (-: -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf "It ain't those parts of the Bible that I can't understand that bother me, it's the part that I do understand." - Mark Twain |
#7
|
|||
|
|||
Where are parameters for the window a bat file opens!
In microsoft.public.windowsxp.general, on Sat, 26 Sep 2015 12:05:15
+0100, "J. P. Gilliver (John)" wrote: In message , micky writes: In microsoft.public.windowsxp.general, on Sat, 26 Sep 2015 10:18:14 +0100, "J. P. Gilliver (John)" wrote: In message , micky writes: In microsoft.public.windowsxp.general, on Fri, 04 Sep 2015 19:08:58 -0400, micky wrote: Using XP Where are parameters for the window a bat file opens [] I don't know where they are stored, but I found out where to set them. I Click on a .bat file to have it open a cmd window. Then right click the upper left corner and left click Properties. I had sort of assumed that the properties were as fleeting as the window, but they're not. [] Does this remember if you select true character mode, with Alt-Enter? Sorry. I misread your question and answered as if you had asked about Alt-Space. I also don't know the term true character mode. Isn't alt-enter the same thing as right clicking on the upper left Not on my system (XP SP3): I open a command window (Start | Programs | Accessories | Command Prompt, or Start | Run | "cmd"). If I right-click on the upper left corner, it does the same as if I left-click: brings up a menu with restore (I'm not going to keep typing capital letters), move, size, minimise, maximise, close, edit, defaults, and properties. If I Alt-Enter, in contrast, it gives me true full-screen - not the same Right. It's not a box, but the full screen. In my XP system, however, the characters were a bit fuzzy and maybe wider, giving less on the screen, plus there is no vertical (or horiz) scroll bar, which I found useful in reviewing XXCopy's list of files that did not get copied. Last Sunday my XP system failed. I spent a lot of Monday trying to repair it (another thread I hope to start) and Monday night I moved to my only spare computer that had a HDD and an OS. A friend who upgraded his office gave me a Dell Vista computer, and now in Vista when I try to do Alt-Enter, I get "This system does not support fullscreen mode". This is with Start | run | cmd or a shortcut that calls tcc/le. (I have no bat files except autoexec.bat which doesn't pause in the middle, and whose box disappears right away) as maximise. (For those who haven't seen this before and find it alarming: Alt-Enter again restores matters.) corner? I think so, so yes, it remembers. Hmmm. I haven't checked [] Although the scroll bar actually covers up 2 or 3 characters if a line is that long. and there might not be a left-right scroll bar. . Alt-Enter removes all trace of scroll bars ... (-: If only we could have a format with the best of all 3 possible formats! (JK, I'm pretty much satisfied, at least if it remembers the width in the next windows session.) |
#8
|
|||
|
|||
Where are parameters for the window a bat file opens!
In message , micky
writes: In microsoft.public.windowsxp.general, on Sat, 26 Sep 2015 12:05:15 +0100, "J. P. Gilliver (John)" wrote: [] Does this remember if you select true character mode, with Alt-Enter? Sorry. I misread your question and answered as if you had asked about Alt-Space. I also don't know the term true character mode. Not surprising, as I made it up; I'm not sure what the "official" name for that mode is, if there is one. I called it that because, on some systems at least, I think it actually changes the mode of the graphics hardware, to an 80 by 25 character mode that's there from days long ago. [] Right. It's not a box, but the full screen. In my XP system, however, the characters were a bit fuzzy and maybe wider, giving less on the Unless it's a laptop, that's probably your monitor: some modern (especially non-CRT) monitors won't even display this old mode - the ones that do aren't optimised for it. (Pressing the auto-adjust button - or manually tweaking the monitor - might make it less fuzzy. But then you'd have to redo that when you got back into graphics mode, so don't bother.) [] Last Sunday my XP system failed. I spent a lot of Monday trying to repair it (another thread I hope to start) and Monday night I moved to my only spare computer that had a HDD and an OS. A friend who upgraded his office gave me a Dell Vista computer, and now in Vista when I try to do Alt-Enter, I get "This system does not support fullscreen mode". This is with Start | run | cmd or a shortcut that calls tcc/le. (I have no bat files except autoexec.bat which doesn't pause in the middle, and whose box disappears right away) I _think_ that's how .bat files have run in the Windows environment since '95 - when they've finished, their command window closes. But if you run them from an already-opened command prompt, e. g. by typing \autoexec at the command prompt, they _won't_ disappear when they finish (or rather the command window won't). [] If only we could have a format with the best of all 3 possible formats! (JK, I'm pretty much satisfied, at least if it remembers the width in the next windows session.) -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf After a typical day at the BBC you want something to take your mind off work, although in the end, decent people being eaten alive by heartless monsters running amok proved no distraction. - Eddie Mair, RT 2015/7/4-10 |
#9
|
|||
|
|||
Where are parameters for the window a bat file opens!
In microsoft.public.windowsxp.general, on Sun, 27 Sep 2015 00:36:07
+0100, "J. P. Gilliver (John)" wrote: In message , micky writes: In microsoft.public.windowsxp.general, on Sat, 26 Sep 2015 12:05:15 +0100, "J. P. Gilliver (John)" wrote: [] Does this remember if you select true character mode, with Alt-Enter? Sorry. I misread your question and answered as if you had asked about Alt-Space. I also don't know the term true character mode. Not surprising, as I made it up; Well then, I'm glad I commented. I almost didn't, thinking Why should one comment on something he doesn't know? I'm not sure what the "official" name for that mode is, if there is one. I called it that because, on some systems at least, I think it actually changes the mode of the graphics hardware, to an 80 by 25 character mode that's there from days long ago. [] Right. It's not a box, but the full screen. In my XP system, however, the characters were a bit fuzzy and maybe wider, giving less on the Unless it's a laptop, that's probably your monitor: some modern It's a Viewsonic thin screen monitor, and until I get back to XP I can't try it with anythihng else, including the Dell Trinitron CRT I'm using now., (especially non-CRT) monitors won't even display this old mode - the Yeah, non-CRT. ones that do aren't optimised for it. (Pressing the auto-adjust button - or manually tweaking the monitor - might make it less fuzzy. But then you'd have to redo that when you got back into graphics mode, so don't bother.) [] Last Sunday my XP system failed. I spent a lot of Monday trying to repair it (another thread I hope to start) and Monday night I moved to my only spare computer that had a HDD and an OS. A friend who upgraded his office gave me a Dell Vista computer, and now in Vista when I try to do Alt-Enter, I get "This system does not support fullscreen mode". This is with Start | run | cmd or a shortcut that calls tcc/le. (I have no bat files except autoexec.bat which doesn't pause in the middle, and whose box disappears right away) I _think_ that's how .bat files have run in the Windows environment since '95 - when they've finished, their command window closes. But if Yeah, that's fine. I just meant that because of that, I can't adjust the size of the screen or try alt-enter. you run them from an already-opened command prompt, e. g. by typing \autoexec at the command prompt, they _won't_ disappear when they finish (or rather the command window won't). Right, but to go back a ways, I'll have to wait until I have a bat file with a pause of some sort in it, to adjust the width a window opened by clicking on a bat file, and then to see if the new value lasts from one windows session to another. A lot of other things to do first**, (like copying over my Firefox history and password files. And the cookies from a web order I was assembling.) **Well, I get impatient. I put a "pause" in autoexec.bat (which had only one line it it before) and set the screen width to 126 and now the cmd window is the same width as the screen. I'll check after rebooting if it has stayed that way. If only we could have a format with the best of all 3 possible formats! (JK, I'm pretty much satisfied, at least if it remembers the width in the next windows session.) |
#10
|
|||
|
|||
Where are parameters for the window a bat file opens
On 9/4/2015 7:08 PM, micky wrote:
Using XP Where are parameters for the window a bat file opens Earlier, in one of these groups iirc, I showed how to make a cmd box or a TCC/LE box fill the screen, and have a scroll bar on the right, by creating an icon that calls either cmd or tccle, and by setting the Properties/Layout Width to 240, or at least some value higher than 80. And how one could change the background color and the font size in other properties tabs. That works great, except I have to start the box first and then type in the name of my bat file. I'd like to just click on the .bat file like I used to, but then it doesn't matter what settings some uninvolved icon has. So I figured it would be in Associations and I looked at Folder Options / File Types to see what settings I could change for .bat files. Well, it turns out .bat doesn't have an entry in File Types. Neither does .exe, com, sys, or scr. I guess that's why they call it FILE types and not EXTENSIONS. So where are the parameters for a window opened up when one clicks on a bat file. Specifically I want to make changes to the layout width, the background color, (maybe the text color), and the font size. I know they're in there somewhere. TIA On my XP system, the settings for a cmd window opened by dbl-clicking a batch file are located in the registry at this key. HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cm d.exe This is the default location where settings are read when a cmd window is opened without using a shortcut (ie. dbl-clicking a .bat file or DOS program). This is completely different from Win95 systems which used a special default .pif shortcut which was located in the windows\system folder. ..bat does indeed have a file type. Its called "MS-DOS Batch File" which can be found in the registry. To add/modify different actions (i.e. change editor) you have to do it manually in the registry. Microsoft does not want people to be messing with application types so easily from the File Types applet because you might break something. In another post, Atl+Enter was mentioned, specifically, that full screen mode was not working on a Win Vista system. This is because that system is 64-Bit. On a 32-Bit system it does indeed work. I have full screen cmd prompt working just fine on a Win7 32-Bit system. HTH -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages) |
#11
|
|||
|
|||
Where are parameters for the window a bat file opens
On 28/09/2015 07:54, Todd Vargo wrote:
In another post, Atl+Enter was mentioned, specifically, that full screen mode was not working on a Win Vista system. This is because that system is 64-Bit. On a 32-Bit system it does indeed work. I have full screen cmd prompt working just fine on a Win7 32-Bit system. Todd, that's real strange because it's never worked for me on a 32 bit Windows system after XP, up to Win 8.1 32 bit. We're talking full screen with no title bar, edges or scroll bars, yeah? |
#12
|
|||
|
|||
Where are parameters for the window a bat file opens
On 28/09/2015 12:58, foxidrive wrote:
On 28/09/2015 07:54, Todd Vargo wrote: In another post, Atl+Enter was mentioned, specifically, that full screen mode was not working on a Win Vista system. This is because that system is 64-Bit. On a 32-Bit system it does indeed work. I have full screen cmd prompt working just fine on a Win7 32-Bit system. Todd, that's real strange because it's never worked for me on a 32 bit Windows system after XP, up to Win 8.1 32 bit. We're talking full screen with no title bar, edges or scroll bars, yeah? Just after posting I tested NT, Vista and Win7 all 32 bit VM's in virtualbox and yes indeed, they all went to full screen using alt-enter. My Win 8.1 32bit which hosts the vitualbox doesn't change display, instead popping up a box saying "This system does not support fullscreen mode.". I'm pretty sure that has been my experience with Win 7 32 bit that I had on a physical machine also. Are yours on a virtual machine Todd, or can other's verify the behaviour on physical machines? A quick search says it is due to changes in graphic drives in vista and later - and I read a sentence that suggests if you use "XP Mode" then you can go full screen. See he https://support.microsoft.com/en-us/kb/926657 |
#13
|
|||
|
|||
Where are parameters for the window a bat file opens
On 9/27/2015 11:18 PM, foxidrive wrote:
On 28/09/2015 12:58, foxidrive wrote: On 28/09/2015 07:54, Todd Vargo wrote: In another post, Atl+Enter was mentioned, specifically, that full screen mode was not working on a Win Vista system. This is because that system is 64-Bit. On a 32-Bit system it does indeed work. I have full screen cmd prompt working just fine on a Win7 32-Bit system. Todd, that's real strange because it's never worked for me on a 32 bit Windows system after XP, up to Win 8.1 32 bit. We're talking full screen with no title bar, edges or scroll bars, yeah? Just after posting I tested NT, Vista and Win7 all 32 bit VM's in virtualbox and yes indeed, they all went to full screen using alt-enter. My Win 8.1 32bit which hosts the vitualbox doesn't change display, instead popping up a box saying "This system does not support fullscreen mode.". I'm pretty sure that has been my experience with Win 7 32 bit that I had on a physical machine also. Are yours on a virtual machine Todd, or can other's verify the behaviour on physical machines? A quick search says it is due to changes in graphic drives in vista and later - and I read a sentence that suggests if you use "XP Mode" then you can go full screen. See he https://support.microsoft.com/en-us/kb/926657 Not virtual. Not set up for XP mode either. Its Win 7 Pro 32-Bit running on a 32-Bit machine. It is a fresh install so no tweaks or other enhancements performed to make it work. -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages) |
#14
|
|||
|
|||
Where are parameters for the window a bat file opens
On 29/09/2015 13:12, Todd Vargo wrote:
A quick search says it is due to changes in graphic drives in vista and later - and I read a sentence that suggests if you use "XP Mode" then you can go full screen. See hehttps://support.microsoft.com/en-us/kb/926657 Not virtual. Not set up for XP mode either. Its Win 7 Pro 32-Bit running on a 32-Bit machine. It is a fresh install so no tweaks or other enhancements performed to make it work. I'm assuming that you mean that there are no scrollbars or border or titlebar visible, Todd. The microsoft link says it's not possible on Windows 7 - but there could be a video driver which you are using which supports it. Can you please advise which video card you are using and driver release version? |
#15
|
|||
|
|||
Where are parameters for the window a bat file opens
On 9/29/2015 4:39 AM, foxidrive wrote:
On 29/09/2015 13:12, Todd Vargo wrote: A quick search says it is due to changes in graphic drives in vista and later - and I read a sentence that suggests if you use "XP Mode" then you can go full screen. See hehttps://support.microsoft.com/en-us/kb/926657 Not virtual. Not set up for XP mode either. Its Win 7 Pro 32-Bit running on a 32-Bit machine. It is a fresh install so no tweaks or other enhancements performed to make it work. I'm assuming that you mean that there are no scrollbars or border or titlebar visible, Todd. Nothing to assume. I said, "full screen". The microsoft link says it's not possible on Windows 7 - but there could be a video driver which you are using which supports it. That info is misleading. Its intended for Vista and Win 7 64-Bit users. I don't have a Vista 32-Bit to test/confirm for you but I'd bet full screen would work on a 32-Bit non-virtual installation. Can you please advise which video card you are using and driver release version? Its the Dell Dimension 3000 on board video, and the driver is Microsoft's Standard VGA Adaptor installed by Windows 7 setup. Nothing fancy. No Dell drivers installed. Please confirm that you tested in a non-virtual, 32-Bit installation. -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages) |
|
Thread Tools | |
Display Modes | |
|
|