Copying a file or folder from one computer to another on a network?

  • Thread starter G.T
  • 8 comments
  • 2,206 views

G.T

11,462
United Kingdom
U.K
Paganisterr
Ak Paganister
Hi all

Really simple question which is totally frustrating the hell out of me. It's easy peasy on Linux but Windows...

I wish to just copy a folder from one computer to another on XP or Windows 7 through an internal network. Basically it's a script I created and wish to execute it remotely.

How on earth do I transfer it over? I have the IP addresses of the computers I wish to send them to. For example I tried:

xcopy C:\\Python27\foldertocopy "\\192.168.0.19\C:\folderlocation"

Always says invalid drive specificed.

Unless there is a program out there that helps you do this? Or a way to correct this?
 
Ok tried that. Does the same thing.

Tried to be exact: xcopy C:\\Python27\project "\\192.168.0.19\C$\project"

The project folder already exists on the other machine. Still says "Invalid drive specification" "0 files copied"

Makes me wonder if it's an administration issue. That will be a bloody pain... Which would be strange because we have (apparently) full access to all computers in here due to being forensic students.
 
Last edited:
Oh hang on C:\\Python27 won't work. You need only one slash. C:\Python27
 
Oh right I've left Uni now so will have to try again tomorrow or Friday. Unless I manage to get a network setup at home...

Thanks for the help so far I'll let you know when I try.
 
Normally you would need to have the computers on the same workgroup or homegroup setup and then usually tell one computer to share a folder. You should go into "Advanced Sharing Settings" so they will be able to share files. It's been a while since I've done it myself so I won't go into detail. I do know getting an XP machine and a Windows 7 machine to share can be a pain.
 
xcopy by default does not copy the folder.

You want something like this.

xcopy C:\Python27\foldertocopy\*.* \\192.168.0.19\C:\folderlocation /s /i
 
I tried all the advise and it didn't seem to work.

Instead I setup a FTP server and installed clients on all the computers to access it. A little more complicated but not too much so and did what I wanted.

Thanks for the help though!
 
Back