jsc
13 years agoRegular Contributor
how to edit a locked file?
Hi all,
I have to edit a file that is locked by a process (tomcat).
Notepad cannot edit the file, notepad++ can edit (clear) the file without any problems.
How can I make TestComplete (via JScript) clear the file like notepad++ does?
Stopping the locking process unfortunately is not an option.
This does not work (nor do similar workarounds):
aqFile.WriteToTextFile(fileName, "test", aqFile.ctANSI, true);
Best regards
Joachim
I have to edit a file that is locked by a process (tomcat).
Notepad cannot edit the file, notepad++ can edit (clear) the file without any problems.
How can I make TestComplete (via JScript) clear the file like notepad++ does?
Stopping the locking process unfortunately is not an option.
This does not work (nor do similar workarounds):
aqFile.WriteToTextFile(fileName, "test", aqFile.ctANSI, true);
Best regards
Joachim