Link to home
Start Free TrialLog in
Avatar of ImImIn
ImImInFlag for United States of America

asked on

Access Denied error when executing batch file that was moved from Windows 2003 server to a Synology NAS server.

We have a custoemr that we upgraded their Windows 2003 Server to a Synology NAS server.  All business files were stored on the 2003 server and are now copied to the new NAS server.  Most everything is working fine.  We do have a couple issues one being a DOS batch file (attached: change extention from txt to bat) that they use by copying files in the root of a shared directory on the NAS (S:) (which only has admin rights) and then right clicking on the addfilez.bat file and choosing 'paste'. This runs the batch file. If a admin runs the batch file all runs well, if a user runs the batch file they get a 'access denied' error on the cmd prompt while running the batch file. If I move the files to be copied that the user has rights to the batch file runs as expected ***I guess all this would be expected. The real problem arises when the same user copies the file from another computer on the network that she has admin rights to (and admin rights on the share) and the batch file does not run.  Any ideas on what might be going on here?

Thanks for you help in advance!

Gary
ADDFILEZ.txt
Avatar of NVIT
NVIT
Flag of United States of America image

This can help you see what's happening:
1. Open CMD prompt in desired folder.
2. Run batch. You'll have to pass the filename to the .bat file. e.g. AddFilez filename.txt
SOLUTION
Avatar of akahan
akahan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ImImIn

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for ImImIn's comment #a40517702

for the following reason:

I frankly forgot about this post (I am so sorry) and was able to solve on my own.
Correct information was provided a  month ago... happy xmas!