Batch file run multiple commands simultaneously

Which of the complying with retains the indevelopment it's storing when the mechanism power is turned off?
*

:: Backups brochure and stores it in addition to the log file to E:File Manager BackupsCATGTEST."E:ibmcognosc10_64incatbackup.exe" "ORACLE" "catgadm/~xxxxxxxxxxxxxxxxxxxxxxx
ETLCTGT" "E:Data Manager BackupsCATGTESTcatlog_backup_%date:~-4,4%%date:~-7,2%%date:~-10,2%.cfg" -L"E:Documents Manager BackupsCATGTESTcatlog_backup_%date:~-4,4%%date:~-7,2%%date:~-10,2%.log"forrecords -p "E:File Manager BackupsCATGTEST" -s -m *.* /D -60 /C "cmd /c del
I have the right to run these commands individually just fine, yet can not uncover a method to run them at the same time.  Edited May 23, 2017 at 16:45 UTC

*

ProfessorNerdly
I am not completely certain what you suppose by simultaneously? Command also line does not work favor that, it is just consecutive regulates. 

If you need the data from command also 1 to feed into command 2 you are going to want to usage powershell not a batch file.

You watching: Batch file run multiple commands simultaneously

You could but, maybe make this job-related by including the second command to the first line using a | to separate them. Not sure if it will certainly occupational though.


ETLCTGT" "E:Data Manager BackupsCATGTESTcatlog_backup_%date:~-4,4%%date:~-7,2%%date:~-10,2%.cfg" -L"E:File Manager BackupsCATGTESTcatlog_backup_%date:~-4,4%%date:~-7,2%%date:~-10,2%.log" | fordocuments -p "E:File Manager BackupsCATGTEST" -s -m *.* /D -60 /C "cmd /c del
*

erulastiel
I am not completely sure what you mean by simultaneously? Command line does not occupational prefer that, it is simply consecutive commands. 

If you require the information from command 1 to feed right into command 2 you are going to desire to usage powershell not a batch file.

You can yet, probably make this work by including the second command also to the first line making use of a | to sepaprice them. Not sure if it will work-related though.


ETLCTGT" "E:Documents Manager BackupsCATGTESTcatlog_backup_%date:~-4,4%%date:~-7,2%%date:~-10,2%.cfg" -L"E:File Manager BackupsCATGTESTcatlog_backup_%date:~-4,4%%date:~-7,2%%date:~-10,2%.log" | forpapers -p "E:File Manager BackupsCATGTEST" -s -m *.* /D -60 /C "cmd /c del
Here is one means..

See more: Nvlddmkm.Sys System_Thread_Exception_Not_Handled : Nviddmkm, Atikmpag

Launch power shell

Type cmd

begin $command

start $command

Edit: 

Actually, simply you do not have to launch PowerShell. Just kind begin in front of your command in command prompt.. It need to launch a new CMD home window.


Thank you, I simply uncovered out that I did not have proper perobjectives to the "E:File Manager BackupsCATGTEST" directory!

The regulates run sequentially without any type of operator and also additionally with && provided that the initially command executes.


that_obonoxious_brown_male wrote:

Thank you, I just found out that I did not have actually correct permissions to the "E:Documents Manager BackupsCATGTEST" directory!

The regulates run sequentially without any type of operator and also also with && offered that the initially command executes.

Good deal, ideal of luck!

If you supposed run them sequentially with a single command, that"s okay.

See more: Uxcell Pc Desktop Front Usb And Audio Panel Audio Connector, Audio Front Panel

If you mean run them conpresently, a method to perform that would be to have actually your first batch file contain a command to launch a second batch file (with the first command) and not wait for it to finish. (Spawn a new cmd, in other words.) Then execute the second command also in the first batch file.


This topic has been locked by an administrator and also is no much longer open up for commenting.