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 42,027 of 42,547   
   Andy Burnelli to All   
   Re: Is there a way to put a command wind   
   23 Apr 22 14:17:26   
   
   XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows   
   From: spam@nospam.com   
      
   Zaidy036 wrote:   
      
   >> Is there a way to background a Windows command (e.g., "&") and then we can   
   >> safely _close_ that extraneous running command window to reduce clutter?   
   >   
   > Use Schtasks and select "hide" then run from shortcut   
      
   This works to bring up the Android GUI using the Task Scheduler.   
   But it still creates two windows (scrcpy console and Android GUI).   
      
   Create shortcut:   
    TARGET=C:\Windows\System32\schtasks.exe /run /TN "task scrcpy_1"   
    Name=task scrcpy   
      
   Doubleclick on that shortcut "task scrcpy.lnk" to execute it.   
      
   Run > taskschd.msc > Task Scheduler Library > RMB Create Task >   
    General:   
     Name = task scrcpy   
     [x]Hidden   
    Actions > New   
     Action = Start a program   
     Program/script = %comspec%   
     Add arguments = /c start "" adb connect 192.168.0.2:5555 && scrcpy   
   --always-on-top --tcpip=192.168.0.2:5555   
     Start in = c:\app\editor\android\scrcpy   
      
   Note that whether or not the [x]Hidden" box was checked,   
   the result was the same two windows.   
   a. The scrcpy console window   
   b. The Android GUI window   
      
   This didn't work because it killed all the windows.   
     Add arguments = /c start "" adb connect 192.168.0.2:5555 && scrcpy   
   --always-on-top --tcpip=192.168.0.2:5555 &cls&exit   
      
   --- 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