If /test on your Windows machine is shared, then mount it on the Linux machine - like mapping a Windows share to a drive letter like M:.
To do this, use a command like this:-
mount -t cifs -o credentials=/etc/samba/cred.txt //winPC/test /tmp/test
This command will mount the Windows share to /tmp/test on my Linux box. I can now copy files from the Linux filesystems to /tmp/test, which is really the Windows share. Make sure the directory /tmp/test exists before you perform the mount. Also, only root can perform the mount command.
The file /etc/samba/cred.txt contains authentication data for the winPC computer:-
Change "administrator" and "xxxxx" to whatever makes sense for your Windows share.
The mount command refers to //winPC/FaxReceived. These are the server and share names for your Windows PC and shared directory. Make sure that your Linux machine can resolve the name ("winPC" in my case) to an IP address. If you don't have winPC in your host table, then replace "winPC" with the IP address of the Windows PC.