Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 272653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:20:27+00:00 2026-05-12T00:20:27+00:00

I am running a batch job that has been going for many many hours,

  • 0

I am running a batch job that has been going for many many hours, and the log file it is generating is increasing in size very fast and I am worried about disk space.

Is there any way through the command line, or otherwise, that I could hollow out that text file (set its contents back to nothing) with the utility still having a handle on the file?

I do not wish to stop the job and am only looking to free up disk space via this file.

Im on Vista, 64 bit.

Thanks for the help,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:20:28+00:00Added an answer on May 12, 2026 at 12:20 am

    Well, it depends on how the job actually works. If it’s a good little boy and it pipes it’s log info out to stdout or stderr, you could redirect the output to a program that you write, which could then write the contents out to disk and manage the sizes.

    If you have access to the job’s code, you could essentially tell it to close the file after each write (hopefully it’s an append) operation, and then you would have a timeslice in which you could actually wipe the file.

    If you don’t have either one, it’s going to be a bit tough. If someone has an open handle to the file, there’s not much you can do, IMO, without asking the developer of the application to find you a better solution, or just plain clearing out disk space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running a robocopy job through a batch file that is scheduled to
I have a batch file that is running inside CruiseControl and outputing either Pass
I am running a Batch file on Windows that runs an Rscript that creates
I am running a long running batch file. I now realize that I have
I know I have already answered a similar question ( Running Batch File in
While running a batch file in Windows XP I have found randomly occurring error
I'm running a batch file command on a server which is using reg query
How to hide cmd window while running a batch file? I use the following
I'm running a simple batch file which is generated by a vbscript to delete
I'm running an xcopy command in a batch script which copies a file to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.