Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XCOPY not working when copying to XP Pro but works on win2k 2

Status
Not open for further replies.

DanielUK

IS-IT--Management
Jul 22, 2003
343
GB
I have a windows 2000 domain, a 2000 server with 2k Professional clients.

I regularly run a dos XCOPY batch file, which resides on the server, that copies a file from the server to the clients. This batch file can normally be launched from a client from within Explorer or a shortcut.

I recently replaced one of the clients with an XP Pro machine and the batch file will now not work on this PC. It gives me "Access Denied" on the XCOPY command.

I'm wondering if this is an XCOPY issue rather than permissions, as I have the target directory/files set to fully modify for "Everyone" on the domain. I can also, from the workstation, drag and drop the file in question from the server to it's destination with no fuss.

Is there an issue with XP Pro not liking the batch file being launched from the server? If so, why is it different to Win 2k?

Thanks

Dan
 
I would be checking your permissions on both NTFS and shares. It would also help if you posted the batch file.

Also, if you run the batch file locally does it work? (I've never heard of an issue like this with running it from a server - I really doubt that's the cause of your problem).
 
Thanks,

I tried to run it locally (moved batch script from server to the WinXP Pro machine) last night and it still errors out. It goes like:

Code:
xcopy "D:\Database\FE\FE.mde" /c /v /y "\\Workstation8\C\FE\"

D is a mapped drive on the server. The MDE file is a database file.

If I look at the security tabs for the server and local files and directories above, they've currently all got the administrators and domain users as having full control. This is after trying different combinations. Not sure what to try next.

Thanks

Dan

 
Is it possible that the file is still open when you attempt to copy it. Open Computer Mgmt and check Open Files to ensure that the file is not being used by anyone
 
Thanks,

No, they're definitely closed, this is double checked on all workstations prior to running this batch file.

Dan
 
just a guess, add system with full permissions 2 xcopy/security
 
Thanks,

System isn't listed in the selection when I view permissions of the batch file from the server (as domain administrator).

However, if I look at permissions of the batch file from the XP Pro machine it allows me to add system...still doesn't work with full permissions. :(

BTW, what is the "system" as I only really noticed it on the XP Pro machine?

Thanks

Dan
 
I notice you mention checking the Secuirty tab, but did you also check the Share permissions on the XP machine as suggested earlier by lwcomputing? By default, XP sets Share permissions to Everyone group Read-Only.
 
Well, thanks for highlighting that...I'm hanging my head in shame here [purpleface] as I've just enabled the permissions on the share and it's now working...doh!

Apologies for overooking that and thanks to everyone, especially lwcomputing and Freestone for pointing (and reminding) me in the right direction!

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top