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\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
Erv LeonardAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CompProbSolvCommented:
The first error "network name cannot be found" is significant.  It's either not finding the computer named SHOP or it's not finding the share.

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.
1
JohnBusiness Consultant (Owner)Commented:
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.
1
Tom CieslikIT EngineerCommented:
If you have map drive like let say X to \\Shop\files to save
run CMD as admin from other than shop computer

cd\
cd X:
copy C:\Users\Erv\Desktop\DSC06343.jpg
Enter

Let me know if this is working ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Erv LeonardAuthor Commented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.