General discussion

Locked

Access denied on .bat file

By adamtechpro ·
Hello all. I am currently having a problem with a .bat file I have set up to update the in house application for my company. The .bat file resides on a windows 2003 server and all machines are running identical versions a nd updates for windows 2000 sp4. The users access the .bat file via our wbesite where i have placed an update link. When the .bat file is executed, 90 percent of my users overwrite the old files with the updated ones fine. For some reason about 5-8 of my users get access denied for some but not all files in the update. I have examined all computers for differences and found none. I have checked microsoft and found some troubleshooting solutions but none made a difference. I have included a copy of the .bat file for examining.

: UPDATE EXCEED 4000 USING LOGON SCRIPTS


@echo off
cls
echo This will Update TRIDENT to the most recent version.
echo Please Close TRIDENT before continuing ...
Echo Ctrl-C to Abort, or
pause

IF NOT EXIST "C:\Program Files\SSAWM1000\*.PBD" GOTO ERR


goto files

:NOFILES
cls
echo Update Failed - Please Contact Jason ...
pause
goto fini

:FILES
cls
echo Your System is Updating - please wait ...

echo Copying New ELMVU.PBD And ELMNV.PBD Files to TRIDENT ...
copy \\elm-nas\Public1\Software\SSAWM1000\*.* "C:\Program Files\SSAWM1000"

goto done

:err
echo.
echo Your System is unable to be updated ...
pause
goto fini

:done
echo.
echo Exceed For Server2 has been Updated Sucessfully ...
echo You can now use Exceed ...
pause
goto fini

:Fini


Essentially it searches for the directory, which i know for a fact is the same for all my users and overwrites the files in the directory with the new ones. I have allowed everyone access full control to the shared folder on my windows 2003 file server, but with no luck. Thanks again for any replys

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by BFilmFan In reply to Access denied on .bat fil ...

Are they access the files as authenticated users or as anonymous internet users?

Collapse -

by adamtechpro In reply to Access denied on .bat fil ...

Thanks for the reply bfilmfan. They are accessing the files via our corporate intranet which im assuming would make them authenticated users. In IE the bottom right corner says local internet when on our site. Heres the funny thing, everyone who cant get access manages to copy like 5 of the files(out of about 80). Ive checked permissions and attributes on those specific files and found no difference between those and the ones that cant be copied. All users are logged in to the domain with there own user name and password. I have also verified that the users who can access the files are in the same groups with the same permissions as the problems users. How could i check if they are connecting anonymously? thanks again

Collapse -

by sgt_shultz In reply to Access denied on .bat fil ...

if it truly seem that random and inexplicable, i'd test to see if a new profile for one of the problem users solves it...
access denied...i wonder if there is any more info about this in the servers security event log...?
the other thing that occurs to me is that somehow the users have the files in question open...

Collapse -

by sgt_shultz In reply to

this looked somewhat interesting also.
"Access Denied" When You Delete Folders from a Mounted Drive
http://support.microsoft.com/kb/243514/en-us

Collapse -

by sgt_shultz In reply to

...or encrypted...???
here is another one:
"Access Is Denied" Error Message Appears When Permissions Are Correct
http://support.microsoft.com/kb/250494/en-us

Collapse -

by sgt_shultz In reply to

..but this is the one i bet...
"Access is denied" error message when you run a batch job on a Windows Server 2003-based computer
http://support.microsoft.com/kb/867466/en-us

Collapse -

by adamtechpro In reply to Access denied on .bat fil ...

Thanks for your reply sgt_shultz . ya, it truly does seem random and unexplainabale. I did check the error logs, mainly security as per your suggestion and it shows absolutely nothing. I even logged into one of the problem computers as domain admin which i know for a fact has full access, and the same thing happened! It would appear to be a machine specific problem. Believe it or not, the users experiencing the problem are on the same segment via fiber to a switch in that department. But they just cant run the .bat file. If i goto the directory on the network that the updated files are located in and I manually overwrite the old ones on the local computer it works fine. So go figure,I am pretty clueless, im assuming there is something going on with those specific machines. Some of the microsoft suggestions were adding the users names to the security tab in cmd.exe but that didn't do anything. Oh well its not a huge problem because we update fairly infrequently, but this week we are rolling out some big chnages which is why you find me here. I'll leave this question open in case anyone has an ideas. Thanks again for any replys i get.

Collapse -

by adamtechpro In reply to Access denied on .bat fil ...

Yeah sgt I did see that windows 2003 page and i followed those exact instructions and it did not work! lol, go figure. :) I also did come accross those other microsoft links as well. Damn .bat files!! hehe

Collapse -

by adamtechpro In reply to Access denied on .bat fil ...

RESOLVED! After some brain crunching hours of annoyance I figured out the problem. The problem was mutiple user accounts existing on the computer. Each of these particular computers had about 5+ profiles in the documents and settings folder. So i deleted all the ones that did not need to be there, and I was able to copy files via my .bat file with no access denied errors. yay!

Collapse -

Access denied running a java program with a batch file

by JeekC7 In reply to Access denied on .bat fil ...

I'm trying to run a simple java program I wrote with the main class file name BlackJack. my DOS code is as follows:

@echo off
javaw -classpath <C:\Users\Owner\Documents\NetBeansProjects\BlackJack\build\classes\blackjack> BlackJack
pause


When I run this .bat file all I recieve is an "Access id denied." message. Can anybody help?

Back to Networks Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums