Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait for bat file to complete before continuing

Status
Not open for further replies.

JulsY

Programmer
Jan 22, 2002
24
US
Hi,
Please help with the following.
I have an Execute Process Task calling a bat file, (File1) with arguments, in a loop. I want SSIS to wait for it to complete before going to the next value in the loop. It doesn't seem to do that.
The File1 that SSIS calls makes a call to rcmd to run File2. I added start /WAIT to File1 but that didn't help.

File1:

@ECHO OFF
start /WAIT rcmd \\abcldetl01 E:\FOlDER\SFDC\EXTRACT.bat %1 %2 %3 %4 %5

File2:
CAlls an exe to run and do stuff.

Thanks,
Juls
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top