Please help me in fixing this command.
I wrote a script to delete a file from a location before starting a job. But is not working.
print (exec('del','[$GV_OUTBOUND_DIR]\\[$GV_FILE_NAME]',8));
[$GV_OUTBOUND_DIR] - added path O:\Project\++Projects\Cube\ETL_Unit_test
[$GV_FILE_NAME] - File name with extension, eg: FILEGEN.txt
Below is the error message :
15895 | 3344824096 | PRINTFN | 6/20/2016 2:14:00 AM | 1: Cannot create process with image file <del> and command line |
15895 | 3344824096 | PRINTFN | 6/20/2016 2:14:00 AM | <delO:\Project\++Projects\Cube\ETL_Unit_test\FILEGEN.txt >, due to error <No such file or directory>. |