Erv Leonard
asked on
Access Denied trying to copy file from my PC to mapped drive.
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\deskto p\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
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
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\deskto
The filename, directory name, or volume label syntax is incorrect.
0 file(s) copied.
Any assistance would be greatly appreciated.
Thank you
The other thing is (aside from Home Group and Public Folders) you cannot access your user on PC A if PC B has a different user name.
The easiest way is to set up C:\Temp on PC A with permissions to Everyone. Copy the files there. Then on PC A move them where you need to.
The easiest way is to set up C:\Temp on PC A with permissions to Everyone. Copy the files there. Then on PC A move them where you need to.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you. I was not using CMD as admin. When I switched to CMD admin I was able to copy the files. I also made sure I was in the directory on my HOME PC. I also switched to xcopy to so I can copy subfolders.
cd/
cd users
cd erv
cd desktop
C:\Users\Erv\Desktop>xcopy DSC06343.jpg "\\SHOP\Files to save" /y
Thank you
cd/
cd users
cd erv
cd desktop
C:\Users\Erv\Desktop>xcopy
Thank you
Try the following on your pc:
Start
Run
\\shop\
If it can find the computer named "shop" and it has any shares, they'll show up.
If you get an error, then there is a problem finding a computer named "shop". If that is the actual name, I'd disable the firewall on SHOP as a test and then try my test again.