Batch file fails when server runs

February 18, 2009 at 02:56:10
Specs: Windows XP , 2GB RAM
HI

I work with websphere portal which contains log files which gets updated automatically and these files are getting locked some how while the server is active.
I created a batch which clears the content when server is not running,but once the server starts the job fails unable to clear the conten.
Hence can any one suggest me a way out so that i can clear the contents while the server is active.
The code used by me for clearing the text is

for %%f in (C:\wsapps\ebp\deployment\logs\portal.log) do (type nul > %%f)


See More: Batch file fails when server runs

Report •


#1
February 18, 2009 at 03:09:02
As long as the server keeps the file open, I don't think there's anything you can do.

Report •
Related Solutions


Ask Question