Re: Access Denied Error -- Reading Text File in .BAT program

Tech-Archive recommends: Fix windows errors by optimizing your registry




"PghMark" <PghMark@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:040B6729-1B2A-48DE-9F6A-51E81D225265@xxxxxxxxxxxxxxxx
I'm encountering an occasional error that is having devastating
consequences
for my production processes.

My environment Windows Server 2003. I have the .BAT program executing on
an
applications server and all files that are created, or accessed, are
stored
on a fileserver that is shared out.

The file is accessed dozens of times daily. This error has occurred twice
in the last couple of months.

*****

Each night I create a .TXT file, on a network share, with a list of store
numbers that I will be processing on that evening.

When my problem occurs, the following happens on my application server:

1. I am unable to delete the previous days file (access denied)
2. I can't read the .TXT file (access denied)
3. I can't copy the .TXT file (access denied)
4. A directory shows that the .TXT file exists.
5. An IF EXIST statement, both WSH and VBScript, indicate that the .TXT
file does not exist

If I go to the file server where the share resides:

1. NET FILE shows that the file is in use by the application server.
2. NET FILE indicates that the file is in use, but not LOCKED.
3. A directory listing of the file shows that it exists.

If I use NET FILE ######### /CLOSE the following are the results:

1. NET FILE does not show the file in use
2. A DIR command shows that the file no longer exists.

I've checked all of my event logs and there are no errors in the
application, system, or security log related to the file, or in the time
frame when the file was orginally being deleted, then recreated.

I've "googled" the world and can not find anyone that has experienced a
similar problem.

For starters, can anyone recommend a method that would help me identify
what
is happening to the file. If I know that I pretty sure I can figure out
how
to fix it.

If a file can be shared or accessed by multiple users/processes, I generally
make a copy of it and use the copy so I never block someone else (or get
blocked).

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


.



Relevant Pages

  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... REM * PROGRAM START ... NET FILE only shows the production application server/user id as having the ... It is strange the file disappears completely after using the NET FILE /CLOSE ... My environment Windows Server 2003. ...
    (microsoft.public.scripting.wsh)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... - Add three statements to the batch file, two at the start, one at the ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)
  • Access Denied Error -- Reading Text File in .BAT program
    ... for my production processes. ... My environment Windows Server 2003. ... NET FILE shows that the file is in use by the application server. ... A directory listing of the file shows that it exists. ...
    (microsoft.public.scripting.wsh)
  • Re: Whos is connected to my shares?
    ... branch down to System Tools, Shared Folders, Open Files ... The net file shows me what files are open, but it doesn't show me what ... moving users to a "hidden" share only gives a false sense ... are on a server, will not be limited by the fact that you have all share ...
    (microsoft.public.windows.server.networking)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... for my production processes. ... My environment Windows Server 2003. ... NET FILE shows that the file is in use by the application server. ... A directory listing of the file shows that it exists. ...
    (microsoft.public.scripting.wsh)