Discussion Locked

Windows Script??

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to know how to write a script I can put in a task scheduler to open files at a certain time and more importantly, I want to know how to write a script that will run a ftp to a mvsp host and input text and enter commands, as if I was entering my id and hitting enter?

But, this isn't worth spending more than $10 on for program and I prefer to try the program before buying to be sure it does what I want it to.

I am running windows 2000 pro.

7 replies

by estebandelatorre

Many options...
The script launches a .bat file under certain conditions, like xx:xx time

the .bat file contains...

REM ===FTP begins===
ftp.exe -s:server1.txt 129.11.32.25
ftp.exe -s:server2.txt 129.11.32.26
exit
rem === FTP ends

The -s: option will prompt for a command list file which name is: server1.txt (include the path!!)
The server1.txt file may look like this (created with notepad.exe)

username
password
get wfiles/ccopera c:\myfile\ccopera
get wfiles/ccoperb c:\myfile\ccoperb
quit

Username: The user Id
Password: The password of the user
get: The get command as you usual type
You can put as many get or put or any other command bur aech command in a different line
To finish, the quit command.

Need more?? ask for it!

This discussion is closed to new replies.