Copying the file from the remote server to local computer

Hi all,
I would like to copy a file from the remote server to the computer. I used this command below but I did not work
copy \\cob-filep-01\groups\IT\Systems Support and Operation\Long\tst.txt c:\long
I received this error msg.
The system cannot find the file specified.
Could you give me some idea, please? I might use the incorrect command.
dongocdungAsked:
Who is Participating?
 
jimbecherConnect With a Mentor Commented:
It sounds like you are doing it from a command prompt. Put the first part in quotes:

"\\cob-filep-01\groups\IT\Systems Support and Operation\Long\tst.txt"

It might be easer for you to do it with Windows Explorer
0
 
Joseph DalyConnect With a Mentor Commented:
You need to enclose any path with spaces in quotes

copy "\\cob-filep-01\groups\IT\Systems Support and Operation\Long\tst.txt" c:\long
0
 
dongocdungAuthor Commented:
it said the network name cannot be found. It used this:
copy "\\cob-filep-01\groups$\IT\Systems Support and Operation\Long\tst.txt" c:\long
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
jimbecherCommented:
ARe you sure it is a good location? I am going to go back to using Windows Explorer. See if you can browse to that file with Windows Explorer...
0
 
Joseph DalyCommented:
If c:\long is the directory you want to copy it to then you need a slash at the end

copy "\\cob-filep-01\groups$\IT\Systems Support and Operation\Long\tst.txt" c:\long\

Otherwise if long is the filename then you need.

copy "\\cob-filep-01\groups$\IT\Systems Support and Operation\Long\tst.txt" c:\long.txt
0
 
user_nConnect With a Mentor Commented:
try this program winscp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.