Sorry, i should have made things a bit more clear.
I need someone to make that bat, and set it up so that I plug in my credentials, and the file name and run. Im a bit lost in ive written batch files before, but on this vps, its not executing anything correctly. Cant even get a @echo off with out an "invalid character...."
thus the free share. Just want an plug and play solution.
where are you uploading a file from and to, and how much control do you have over either of the machines not being compromised? my script was assuming it would be run from your local control, not on a machine in the wild. It is a big risk exposing an ftp upload site without encrypted username/passwords. It would be filled with junk in seconds. Does it have to be ftp?
it would be much safer to use sftp, or an encrypted upload session using a commandline WebDAV tool (what webserver is the server that you are uploading to running?)
However from a command line, cut and paste everything in the code, change everything that is in brackets.
make a directory,
change to it
type
notepad c:\ftpupload\ftpupload.bat
cut and paste the following into notepad, click "yes" to create a new file.
assuming the html file to upload is in the c:\ftpupload directory
cd "C:\ftpupload"
ftp -s ftpscript
close it, click to save.
type
notepad c:\ftpupload\ftpscript
cut and paste the following into notepad, click "yes" to create a new file.
Change everything within the brackets. (I missed the username/password first time).
/dir/to/change/to is the directory you need to change to on the remote server. (you may not need this if
o
user
pass
cd
bin
put
quit
close it, click to save
copy and paste the following into the command line, hit enter.
schtasks /create /sc minute /mo 5 /tn "FTP Upload" /tr "c:\ftpupload\ftpupload.bat"
there, as plug and play as I can make it for you.
marked