how to automatic FTP on windows server

Hi

we have windows server has program responsible to monitor  remote devices .

these devices generate files every 8 hours . these devices support FTP

i need program . or tool . or anyway will help me to configure automatic job to ftp these files from these devices and put them in different directories  

as i know in Linux there is
 Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

i want something the same that i can configure on windows server

thanks in advance
LVL 1
sword12Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sajid Shaik MSr. System AdminCommented:
the same thing Wget for windows too.. check the link

http://gnuwin32.sourceforge.net/packages/wget.htm

all the best
0
sword12Author Commented:
do you know any other tool with GUI on windows

or any other option
0
savoneCommented:
You can automate FTP sessions with WinSCP.

http://winscp.net/eng/docs/guide_automation
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

omarfaridCommented:
You can use the wget om windows and you can schedule tasks on windows server to run at specific time and do the file transfers.

Alternatively, you can use ftp command on windows and run it is to read from file like one below, call it myftp.txt:

omar
omar123
lcd c:\oma
get /etc/hosts
quit

then run

ftp -s:myftp.txt

The above ftp command can be scheduled as well on windows as task
0
sword12Author Commented:
sorry but i need more help

i want the right command which will help me to synchronize all csvs files which located on these devices every day at 00.15

the point here that we have around 20 devices . and i want for every device one directory to save this device csvs files

if this not possible maybe i can manage to create different windows tasks in different time  

i am testing wget right now and it work for single file . but what i need multi files . and if possible i want to find way to synchronize them
0
sword12Author Commented:
0
omarfaridCommented:
Are you aiming at running the ftp jobs in parallel? You could have a bat file that has multiple wget commands to copy from different locations and these run one after the other.

Same can be done with the ftp command. in The text file from where you specify the user name , password, etc. if you are copying different files from the same dir, then you can modify it like:

omar
omar123
lcd c:\oma
prompt
cd /path/to/mydir
mget *
quit

The above will work if all the files are in the same server, same user, and same dir.

If files are on different dirs you can use:

omar
omar123
lcd c:\oma
prompt
cd /path/to/dir1
mget *.ext
cd /path/to/dir2
mget *.ext
quit
0
sword12Author Commented:
i did something like this

cd /
cd Wget
wget --unlink --timeout=10 --tries=1 ftp://192.168.82.1/*.csv

but my problem that the source generate everyday 5 CSV files and the job has to get these csv every night

so the job will work first time and get the first 5 csv files the second day will 10 and then 15 and then 20 etc

how can i manage to let the job do one of these 2 options

1- get all files from source and overwrite the destination
or
2- just sync the source with distillation that just get the new generated files


thanks
0
omarfaridCommented:
Is rsync an option for you?

http://www.rsync.net/resources/howto/windows_rsync.html

You can at the beginning of your ftp session do a remote dir listing of files (ls or dir command) and store output in local file. Then compare what you have on your system already with the list and remove the names of files already there from the file.

Then use the remaining files names with ftp to get them from the remote system.
0
sword12Author Commented:
this rsync tool look nice idea

but i have no experience to write such small script

so if you can just write example to me . our device which we use to get csv file from them they have no username and password for FTP

this simple script can bring the files we need but your idea about rsync will help me to bring just the changes  
cd /
cd Wget
wget --unlink --timeout=10 --tries=1 ftp://192.168.82.1/*.csv 

so if you can write example to me and i will try to test it


thanks again
0
sword12Author Commented:
Hi

finally i found the way that will fit in my needs

this do exactly as i want

cd \Wget\trafo1

del /q *.csv*

:mylabel1
c:\Wget\wget --timeout=10 --tries=1 ftp://192.168.82.1/*.csv

if not exist *.csv goto mylabel1


cd \Wget\trafo2

del /q *.csv*

:mylabel2
c:\Wget\wget --timeout=10 --tries=1 ftp://192.168.82.2/*.csv

if not exist *.csv goto mylabel2


thanks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sword12Author Commented:
with help i got the idea to set this solution

cd \Wget\trafo1

del /q *.csv*

:mylabel1
c:\Wget\wget --timeout=10 --tries=1 ftp://192.168.82.1/*.csv

if not exist *.csv goto mylabel1


cd \Wget\trafo2

del /q *.csv*

:mylabel2
c:\Wget\wget --timeout=10 --tries=1 ftp://192.168.82.2/*.csv

if not exist *.csv goto mylabel2
0
Sajid Shaik MSr. System AdminCommented:
Excellent ... thanks for sharing..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.

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.