cmd - FORFILES file not found -


a file specified in /c parameter of forfiles command in batch file not being located.

forfiles /p "%csv_path%" /m "*.csv" /c "cmd /c sqlcmd -s %db_server% -d %db% -e -i scripts\loadstationcsv.sql -o loadstationcsv.log -v temptable = ##dayparts csvpath = @path" 

sql cmd shows following error:

sqlcmd: error: error occurred while opening or operating on file scripts\loadstationcsv.sql (reason: system cannot find path specified).

executed command line, sqlcmd runs parameters above. scripts/loadstationcsv.sql file exists.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -