automate ftp transfer from windows xp to unix

Hello, I need to write a batch file that will automatically ftp a file from my Windows XP box to my SCO Unix box.  I can do this manually without a problem but  need to schedule it to run every night at 1:00 a.m..  The file name is not always going to be the same.  Can I use a wildcard?
foxhelpAsked:
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.

JammyPakCommented:
sure...to push from Windows you can just write a .bat file, then call an ftp script for the ftp commands

see here: http://www.dostips.com/DtTipsFtpBatchScript.php

use mput so you can use a wildcard in the put statement

you could also look for a Windows command line scp to copy to unix instead of using ftp
0
JammyPakCommented:
oh yea, then use task scheduler to set the job up...or the good old at command
0
AlexPaceCommented:
If you need a secure transfer (FTPS or SFTP) or if you need Passive Mode for data transfers the native DOS command line FTP client won't work.

If this is a project for work, or it is more complicated than a simple transfer then you might consider using Robo-FTP.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

foxhelpAuthor Commented:
Here is my script but it is not logging in to the server.  I get a not logged in error.

@ftp -i -s:"%~f0"&GOTO:EOF
cd c:\telaidnorcross\queue
open 192.168.1.10
root
devsysone
cd /server/lown
put Lown*
bye

Can you check the script and let me know what is wrong with it.  It should issue an ftp to 192.168.1.10, log in as root with devsysone as the password, cd to /server/lown directory, and put a file out there.

Thanks


0
JammyPakCommented:
I don't think the wildcard will with with a put - try to mput
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
foxhelpAuthor Commented:
That worked.  Thanks
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
Microsoft Legacy OS

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.