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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -