troubleshooting Question

Access Denied trying to copy file from my PC to mapped drive.

Avatar of Erv Leonard
Erv Leonard asked on
Windows OS
4 Comments1 Solution114 ViewsLast Modified:
I am trying to determine the correct syntax to copy a file from my PC (in a home Workgroup) to a PC in my shop in the same workgroup. Once I have the have the syntax correct I hope to create a batch file.

SHOP is the computer name. "Files to save" is the share name. The \\SHOP\Files to share is a mapped drive I can see in Explorer and I can save files using "Copy"  and "Paste" in Explorer. Erv is the administrator on both PCs and I can remotely log into the SHOP PC.

First I tried:

C:\Users\Erv\Desktop>copy DSC06343.jpg "\\SHOP\Files to save"
The network name cannot be found.
        0 file(s) copied.

Then:
C:\Users\Erv\Desktop>copy DSC06343.jpg "\\SHOP\C$\users\Erv\files to save"
Access is denied.
        0 file(s) copied.



I have read about and tried several other syntax.

C:\Users\Erv\Desktop>copy DSC06343.jpg " \\Shop\Files to save e /user:Erv"
The filename, directory name, or volume label syntax is incorrect.
        0 file(s) copied.

"e" is the password for the SHOP PC

C:\Users\Erv\Desktop>copy DSC06343.jpg "\\Shop\files to save e/user:Erv"
The filename, directory name, or volume label syntax is incorrect.
        0 file(s) copied.

C:\Users\Erv\Desktop>copy DSC06343.jpg "\\Shop\C$\user\Erv\desktop\files to save e /user:Erv"
The filename, directory name, or volume label syntax is incorrect.
        0 file(s) copied.

Any assistance would be greatly appreciated.

Thank you
ASKER CERTIFIED SOLUTION
Tom Cieslik
IT Superintendent
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros