For context, this process is designed to save incremental backup versions of a small demo I am developing locally.
The EXECUTECOMMAND code in TI is as follows:
Code: Select all
cmd = 'rmdir /S /Q' | ' "' | vPath | '"';
EXECUTECOMMAND ( cmd, 0 );
Code: Select all
rmdir /S /Q "C:\path\target_directory_for_deletion"
Yet, when I call this command as part of EXECUTECOMMAND(cmd, 0);, the TI aborts with error "The system cannot find the file specified". When I call the exact same command, character for character according to my textoutput, via the normal command line, it completes successfully. This error happens in TI even when the "rmdir" EXECUTECOMMAND is the only one non-commented, so I don't think this particular issue is being caused by some sort of "interference" with another command - although I'll admit I'm not a command line expert.
If you need any other information please let me know - thanks.