Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see all files in it.

I open command window under my user name on my PC and then try to copy that file on my PC:

when I use copy - it works

when I try xcopy - it says "File not found".

when I try robocopy - it says "Access is denied".

How come "copy" is the best tool from those 3 in my situation ? What can I do to make other tools to work in this case ?

share|improve this question

migrated from stackoverflow.com Oct 4 '12 at 22:38

This question came from our site for professional and enthusiast programmers.

    
which were the xcopy parameters you were using ? –  BrOSs Oct 4 '12 at 15:18
    
without parameters –  alpav Oct 4 '12 at 18:39
    
What version of Robocopy are you using? –  Kevin Fegan Jan 29 at 23:33
add comment

2 Answers

try this

XCOPY \\Server\Folder\yourFile.txt C:\YourReportFolder\  /C /S /D /Y /I

Example:

XCOPY "\\MX0010\Folder\YourFile.xlsx" "C:\Users\User\Desktop\Reports\" /C /S /D /Y /I

Regards

share|improve this answer
    
This did not help, if I replace xcopy from your example with copy and remove /C /S /D /Y - it works. xcopy still gives same error "File not found". Putting backslash at the end or wrapping source and destination in quotes did not make any difference. –  alpav Oct 4 '12 at 20:24
add comment

Have you tried mapping your source folder to drive letter first and then use the drive letter in the copy script? It shouldn't matter, but I have seen stranger work-arounds.

 net use f: \\Server\Folder
 XCOPY "f:\YourFile.xlsx" "C:\Users\User\Desktop\Reports\" /C /S /D /Y /I
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.