Computing.Net > Forums > Programming > Batch file fails when server runs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file fails when server runs

Reply to Message Icon

Name: nitin663
Date: February 18, 2009 at 02:56:10 Pacific
OS: Windows XP
CPU/Ram: 2GB RAM
Subcategory: Batch
Comment:

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)



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 18, 2009 at 03:09:02 Pacific
Reply:

As long as the server keeps the file open, I don't think there's anything you can do.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch file fails when server runs

A batch file to generate a shortcut www.computing.net/answers/programming/a-batch-file-to-generate-a-shortcut/14801.html

Batch File and Start->Run... www.computing.net/answers/programming/batch-file-and-startrun/8973.html

FTP Download Batch File ( BAT ) www.computing.net/answers/programming/ftp-download-batch-file-bat-/15790.html