Results 1 to 4 of 4
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sharing violation reading drive

    <pre>Sharing violation reading drive C
    Abort, Retry, Fail?</pre>



    I run a batch job across several logical drives. Occasionally it runs across a sharing violation. For this particular batch job I'd be happy to ignore the violation without user intervention.

    I can find nothing in the MSoft Knowledge Base that indicates how to bypass this halt within a batch job.

    Has anyone worked out, or stolen, an idea to avoid the halt?

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sharing violation reading drive

    Never had the problem, so don't have a solution, I'm afraid.
    Here's my link to <A target="_blank" HREF=http://dmoz.org/Computers/Software/Operating_Systems/x86/DOS/Programming/Languages/Batch/>Batch File rescources</A> - you may find something in that lot to help.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sharing violation reading drive

    Thanks for the links. I'll examine them.

    The offending file is an occasional rogue copy of Win386.SWP. If I sweep all logical drives to remove Win386.swp, I get the error on the one copy that isn't rogue. Since Windows won't let a DOS window delete the swap file anyway, I don't care about the message.

    My interim solution is to run the batch file BEFORE loading Windows.

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sharing violation reading drive

    Wow, Leif, great resource. Especially when you have to deal with these things daily! <img src=/S/hairout.gif border=0 alt=hairout width=31 height=23>
    -Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •