Page 1 of 1

TI process to delete log files: Access denied

Posted: Wed Jul 11, 2012 2:46 pm
by holger_b
Dear forum,

I am trying to set up a housekeeping process for log files. The idea ist to first zip older log files and subsequently delete the original files with ExecuteCommand('cmd /c del ...').

Unfortunately access is denied. In Windows Explorer, I can delete these files with administrator rights, but the del command fails using the 'normal' DOS prompt (Access denied). The account which runs the TM1 service has administrator privileges. This is TM1 9.5.2 on Windows Server 2008.

Any ideas?

Regards
Holger

Re: TI process to delete log files: Access denied

Posted: Wed Jul 11, 2012 3:30 pm
by Steve Rowe
The only obvious one is that you are trying to delete one of the live log files. If you are sure that you are working on the time stamped ones then I've got nothing for you.

Re: TI process to delete log files: Access denied

Posted: Thu Jul 12, 2012 12:08 pm
by holger_b
Thank you Steve, but that was not the problem.

In the end we thought of a quick and dirty way: Someone created an .exe file for me which executes the "del" command, and we switched the file options of it to "run as administrator", that solved it.

Re: TI process to delete log files: Access denied

Posted: Thu Jul 12, 2012 12:44 pm
by qml
@holger_b, do you by any chance keep your TM1 data folder in Program Files? Some recent Windows versions put extra restrictions on this and other system-critical folders.

Re: TI process to delete log files: Access denied

Posted: Tue Jul 24, 2012 11:35 am
by holger_b
Thank you, good idea, but we do not. Log files are somewhere on drive D:.