jeudi 3 août 2017

for loop won't run with if statement set to break. need a way to exit for loop when count =0

set /a j=3
for /R c:\dsd_imports\ad_and_deal %%i IN (*.*) DO (
  MDI_import_ad_command.bat C:\DSD_IMPORTS\AD_AND_DEAL\%%~nxi
  MOVE %%i c:\dsd_imports\ad_and_deal\in_process
  set /a j=j-1
  if j == 0
     break
)

Aucun commentaire:

Enregistrer un commentaire