I have the following situation: users update
txt files on daily basis on Windows. I use those flat files as input for my Oracle scripts which is on Unix. I need a script/method of transferring those flat files from Windows to Unix.
You could use the SCP program that comes with famed terminal emulator PuTTY: pscp.exe
If you create public/private key files, pscp.exe should have the ability to just do something like:
pscp *.csv *.txt username@unixhost:whatever/subdirectory/
from inside a .bat file.
You have several options available. Choose one that you are most comfortable with. One potential would be to set up an SMB/CIFS share on the Unix host.
In a script from each Windows workstation, mount the SMB/CIFS share with the
net use \\computername\sharename /persistent:no
After completion of the
move of the file to the SMB/CIFS share, you could optionally remove the share from the Windows workstation.
net use \\computername\sharename /delete
You can get full options of the
net command by running
net help use. Here is a good unofficial guide to configuring Samba.