home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 41,190 of 42,547   
   Todd Vargo to micky   
   Re: Where are parameters for the window    
   27 Sep 15 17:54:43   
   
   XPost: microsoft.public.windowsxp.general, atl.msdos.batch.nt   
   From: tlvargo@sbcglobal.netz   
      
   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_cmd.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)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca