home bbs files messages ]

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

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,572 of 68,980   
   Zaidy036 to All   
   Re: Batch to leave open CMD window after   
   09 Jun 20 12:12:12   
   
   From: Zaidy036@air.isp.spam   
      
   On 6/9/2020 10:31 AM, JJ wrote:   
   > On Mon, 8 Jun 2020 11:30:15 -0400, Zaidy036 wrote:   
   >> Thank you.   
   >>   
   >> My problem was the commands were in the target window instead of the   
   >> shortcut.   
   >>   
   >> FYI my target batch includes the use of NirSoft's MultiMonitorTool to   
   >> position and size the resulting window.   
   >   
   > No shortcut solution for that.   
   >   
   > Without the /K switch, the problem may be solved using CMD's AutoRun   
   > registry setting. Or patch the CMD.EXE file itself.   
   >   
   My preferred settings at beginning of all batches:   
      
   Following is for _BrightCMD.bat:   
      
   [one line to insure following cmds work only on desired this cmd window]   
   [Note "_" changed to "." so not confused with text editor if also open]   
   SETLOCAL ENABLEEXTENSIONS & (TITLE .BrightCMD.bat) & ENDLOCAL   
      
   [One line to set monitor brightness level since some batches lower it]   
   START "" /WAIT D:\_NirSoft\controlmymonitor\ControlMyMonitor.exe   
   /SetValue "\\.\DISPLAY1\Monitor0" 10 80   
      
   [one line to select monitor and position cmd window]   
   SETLOCAL ENABLEEXTENSIONS & (TITLE .BrightCMD.bat) & :: ENDLOCAL   
   START "" /WAIT D:\_NirSoft\multimonitortool-x64\MultiMonitorTool.exe   
   /MoveWindow 1 Title ".BrightCMD.bat" /WindowLeft 100 /WindowTop 3   
      
   [one line to size the cmd window]   
   MODE CON: COLS=100 LINES=55   
      
   --- 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