copying files from linux to windows xp over a home network

Hi,  I have 2 PCs on a small home network.  1 is a linux pc (RHEL4) w/ an ip addy of
the other is a windows xp box (

is there a way (using either dos or bash) to copy specific files from a linux box into a specific directory on the windows xp box?

e.g. I want to copy /usr/pd/test.txt  over to C:\mydirectory

Is this possible?  If so, is there a relatively straightforward syntax to use?

Who is Participating?
nedvisConnect With a Mentor Commented:
There are many different ways you can copy/move/replicate files between Linux and Windows computers on small peer-to-peer networks as your homenetwork is:
1- via FTP servers
2- samba ( Linux support for Windows networking ) files/folders/printer sharing
3- NFS

Probably the simplest way to copy files from Linux ( RedHat Enterprise 4) is to install and enable FTP server on RHEL4 PC  so you can get access to Linux PC from Windows XP using Internet Explorer ( or any other WEB browser ) or via command line ( ftp open etc.)
Running Samba folder/printer sharing service ( smb/nbm ) on Linux PC is more convenient way of accessing files on Linux box from Windows based computers but you'll have to learn how to configure Samba on RHEL4.
  ---------------------------------------             Peer to peer file sharing   Samba Configuration - Linux/Windows Connectivity

good luck
rich911Connect With a Mentor Commented:
You can use WinSCP from your windows box

Or more precisely if you need to
/usr/pd/test.txt over to C:\mydirectory
then this is some thing that is initialated from the Linux end, so you can share your c:\mydirectory from windows - or use the hidden c$ share that should already be there.
smbclient -L //windowsmachine
for a list of shares

Then mount one like this:
mkdir /mnt/windows_c
mount -t smbfs -o username=windowsusername,password=windowspassword //windowsmachine/$c /mnt/windows_c

once you have done that you can do
cp /usr/pd/test.txt /mnt/windows_c/mydirectory/
to copy your file

see also
aravinthrkConnect With a Mentor Commented:
More Simpler way (enhancing Rich's answer) if you're using KDE.

1.  Share your Windows folder.
2. Open Konqueror browser in your Linux Box.
3. In the address bar, type the url of the form
There you Go!!!!

Let us know how it goes.
Good Luck
owensleftfootConnect With a Mentor Commented:
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.