SayYou_SayMe
asked on
how to automatically download files from unix to windows?
we have 2 files A.txt and B.txt at /unix/folder,every week we have to load them to \windows\folder, and send them to users.
usually, I ftp unixserver
cd /unix/folder
prompt
mget *.txt "\windows\folder\*.txt"
question :
1. how to code a bat file ,when i want to download the A.txt and B.txt , just double click the bat file?
2. how to code a bat file to upload the a specific file to unix environment or download a specific file to windows? it means give the file name as parameter.
loginID: unixuser
password: unixpass
usually, I ftp unixserver
cd /unix/folder
prompt
mget *.txt "\windows\folder\*.txt"
question :
1. how to code a bat file ,when i want to download the A.txt and B.txt , just double click the bat file?
2. how to code a bat file to upload the a specific file to unix environment or download a specific file to windows? it means give the file name as parameter.
loginID: unixuser
password: unixpass
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks DrDammnit,
but it is a little bit complicated for me,
is there any other easy way to handle this?
but it is a little bit complicated for me,
is there any other easy way to handle this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks guys
Frozenice-
is it correct? based on your solution
open example.com , what does it mean?
autoftp.bat
@ftp -i -s:"%~f0"&GOTO:EOF
open(what is it?)
unixuser
unixpass
lcd c:\windows\folder
cd /unix/folder
binary
mput "*.*"
disconnect
bye
I am really confuse
Frozenice-
is it correct? based on your solution
open example.com , what does it mean?
autoftp.bat
@ftp -i -s:"%~f0"&GOTO:EOF
open(what is it?)
unixuser
unixpass
lcd c:\windows\folder
cd /unix/folder
binary
mput "*.*"
disconnect
bye
I am really confuse
ASKER
thanks guys
it works now
it works now
Open in new window