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,575 of 68,980   
   Zaidy036 to All   
   Re: Batch to leave open CMD window after   
   09 Jun 20 12:30:42   
   
   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.   
   >   
   No mods of registry or cmd.exe required. I have two monitors and use the   
   following first commands in all batches which is the only content of   
   "_BrightCMD.bat" which is the target for this problem's solution:   
      
   [one line sets monitor brightness which may have been reset in another   
   batch]   
   START "" /WAIT D:\_NirSoft\controlmymonitor\ControlMyMonitor.exe   
   /SetValue "\\.\DISPLAY1\Monitor0" 10 80   
      
   [one line to set cmd window title so following cmds work only on it]   
   [Note "_" becomes "." so not confused with open text editor for batch]   
   SETLOCAL ENABLEEXTENSIONS & (TITLE .BrightCMD.bat) & ENDLOCAL   
      
   [one line to select monitor and cmd window location]   
   START "" /WAIT D:\_NirSoft\multimonitortool-x64\MultiMonitorTool.exe   
   /MoveWindow 1 Title ".BrightCMD.bat" /WindowLeft 100 /WindowTop 3   
      
   [one line to set size of 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