I am trying to create a file in prolog and and delete the file in Epilog of a process.
But when I am trying to delete the "test.txt" file, the process is aborted and gives the error of "The system cannot find the file specified."
Also when I run the command of DEL "C:\Program Files\ibm\cognos\tm1_64\samples\tm1\PlanSamp\test.txt" from cmd, the file is deleted but I want to delete the file with TI.
Could you help me about this problem?
The code is the following:
Code: Select all
Prolog:
vFilePath = 'C:\Program Files\ibm\cognos\tm1_64\samples\tm1\PlanSamp\test.txt';
ASCIIOUTPUT(vFilePath, '');
EXECUTECOMMAND('TIMEOUT 5', 1);
Epilog:
vCommand = 'DEL '|'"' | vFilePath| '"';
ASCIIOUTPUT('CommandLog.txt', vCommand);
ExecuteCommand(vCommand, 1);