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,658 of 42,547   
   Kerr-Mudd,John to phamp@mindspring.com   
   Re: Unable to launch multiple programs v   
   11 Aug 18 08:55:51   
   
   From: notsaying@invalid.org   
      
   On Fri, 10 Aug 2018 22:35:16 GMT, pyotr filipivich   
    wrote:   
      
   > raman783@gmail.com on Fri, 10 Aug 2018 06:00:52 -0700 (PDT) typed in   
   > alt.msdos.batch  the following:   
   >>Hello All,   
   >>   
   >>   
   >>Am trying to create a batch file, that would launch multiple programs.   
   >>But unfortunately, things don't seem to work.   
   >>   
   >>Kindly, find below my requirement:   
   >>1. Open InfluxDB server   
   >>2. Launch Grafana application.   
   >>   
   >>Commands used in the batch:   
   >>@echo off   
   >>cd "C:\Users\C51539A\Downloads\influxdb-1.5.2-1"   
   >>Start.cmd   
   >>timeout 5   
   >>cd "C:\Users\C51539A\Downloads\grafana-5.1.3\bin"   
   >>grafana-server.exe   
   >>   
   >>The above script, launches InfluxDB. But doesn't moves further.   
   >   
   > What you have is interpreted as   
   > "Change Directory   
   > Run First Program   
   > {On completion of Program 1}, run program_two."   
   >   
   > That part between the curly bits is "implied."}   
   >   
   > Comment/note to myself from a batch file:   
   > REM the START command starts programs continues to next command   
   > without waiting for program to end.   
   >   
   > From the help command:   
   >   
   > START Starts a separate window to run a specified program or command.   
   >   
   > START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]   
   >       [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL |   
   > /BELOWNORMAL]   
   >       [/NODE ] [/AFFINITY ] [/WAIT] [/B]   
   >       [command/program] [parameters]   
   >   
   >   
   > IF it was me, I'd try:   
   >   
   >      cd "C:\Users\C51539A\Downloads\influxdb-1.5.2-1"   
   >      START start.cmd   
   >      TIMEOUT 5   
   >      cd "C:\Users\C51539A\Downloads\grafana-5.1.3\bin"   
   >      START grafana-server.exe   
   >   
      
   I think this is the answer; but I'd try to avoid having program/scripts   
   called "start" as well.   
      
   --   
   Bah, and indeed, Humbug.   
      
   --- 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