Re: Access Denied Error -- Reading Text File in .BAT program
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Oct 2008 15:14:12 -0500
"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
--
.
- Follow-Ups:
- References:
- Access Denied Error -- Reading Text File in .BAT program
- From: PghMark
- Access Denied Error -- Reading Text File in .BAT program
- Prev by Date: Re: Finding a Specfic File Through a Batch File
- Next by Date: Re: Finding a Specfic File Through a Batch File
- Previous by thread: Re: Access Denied Error -- Reading Text File in .BAT program
- Next by thread: Re: Access Denied Error -- Reading Text File in .BAT program
- Index(es):
Relevant Pages
|