Trouble with Turbo Integrator EXECUTECOMMAND(rmdir) command?
Posted: Wed Jul 29, 2015 8:41 pm
I'm having trouble with calling an EXECUTECOMMAND to delete a directory with the windows "rmdir" command. There are other EXECUTECOMMANDs in the same TI process that work just fine, although they are calling "xcopy" and not "rmdir". Is there a documented issue with calling "rmdir" from a TI that I wasn't able to find?
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:
The output for the command I'm building is as follows:
This is the expected output. The path is enclosed in quotes because there are directories names with spaces in the path - this is the case with other paths I'm using as well and they work fine.
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.
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.