csv - How to run several yiic commands in one .bat file? -
i have importcommand class
reads file , imports data file database. command works fine.
however, need run same command several times different files.
my .bat file:
@echo off cd c:\xampp\htdocs\mysite\protected\ yiic import c:\sourcefiles\users_1.csv yiic import c:\sourcefiles\users_2.csv yiic import c:\sourcefiles\users_3.csv
the first command runs script stops , files users_2.csv , users_3.csv not processed.
after struggling while, found answer: how run multiple .bat files within .bat file
so .bat file should be:
@echo off cd c:\xampp\htdocs\mysite\protected\` call yiic import c:\sourcefiles\users_1.csv call yiic import c:\sourcefiles\users_2.csv call yiic import c:\sourcefiles\users_3.csv
Comments
Post a Comment