2

I'm trying to get a batch equivalent of & from shell.

curl --referer http://fs1d-h.st/cxX -o ~/Library/Application\ Support/download.part1 $url1 &
curl --referer http://fs1d-h.st/1w9 -o ~/Library/Application\ Support/download.part2 $url2

The first curl command executes in the background, and then runs the second one immediately after the first is started. The result is two downloads (or other commands) running at the same time.

I've looked around and I can seem to find a way to do this in windows cmd. Any ideas?

Rich
  • 5,603
  • 9
  • 39
  • 61

2 Answers2

1
start "" "program1" && start "" "program2" [/wait]

only use wait if you want to wait for the second one to finish before returning control to the shell or batch file that called it.

cure
  • 2,588
  • 1
  • 17
  • 25
0

@echo off

start file1 "location" | start file2 "location" *most recommended

start file1 "location" && start file2 "location"

CMS_95
  • 335
  • 3
  • 13
  • in this answer start explorer is used to start the windows folder environment the path is not intended to locate explorer it is telling explorer what path to open – CMS_95 Nov 22 '13 at 20:11