April 11, 200620 yr Author Has to be the LOCAL dir Even when i try ftp://00000000/public_html/Junk/No go. Edited April 11, 200620 yr by Panda67
April 11, 200620 yr I'm sure it's not as beautiful as if it were hidden, but this simple script does what you want. It uploads a file:Write the following code into a *.CMD or *.BAT and put it into your SendTo-Folder.Note: You have to enter your password, server and your username @echo offecho.##################echo.# #echo.# Uploading File #echo.# #echo.##################set user=YOUR_USERNAME_GOES_HEREset pass=YOUR_PASS_GOES_HEREset srvr=YOUR_SERVER_GOES_HEREecho.open %srvr%>%temp%\sendtoftp.logecho.%user%>>%temp%\sendtoftp.logecho.%pass%>>%temp%\sendtoftp.logecho.BINARY>>%temp%\sendtoftp.logecho.put %1>>%temp%\sendtoftp.logecho.bye>>%temp%\sendtoftp.logftp -s:%temp%\sendtoftp.logdel %temp%\sendtoftp.logHope it helps /PITU
April 11, 200620 yr Author Logs arent the only files i want to send, so that script wont help. thanks anyway.
April 11, 200620 yr You don't seem to understand the script...What it does is to echo your settings to a logfile. after that it starts the ftp.exe with the logfile _as source_.After it's done the script deletes the logfile.You can upload any file with that scriptEDIT: Just give it a try and you'll see: it works fine Edited April 11, 200620 yr by PITU
April 12, 200620 yr Do you mean the remote dir? Yes, that's possible:@echo offecho.##################echo.# #echo.# Uploading File #echo.# #echo.##################set user=YOUR_USERNAME_GOES_HEREset pass=YOUR_PASS_GOES_HEREset srvr=YOUR_SERVER_GOES_HEREset rdir=/YOUR_REMOTE_DIR_GOES_HEREecho.open %srvr%>%temp%\sendtoftp.logecho.%user%>>%temp%\sendtoftp.logecho.%pass%>>%temp%\sendtoftp.logecho.BINARY>>%temp%\sendtoftp.logecho.cd %rdir%>>%temp%\sendtoftp.logecho.put %1>>%temp%\sendtoftp.logecho.bye>>%temp%\sendtoftp.logftp -s:%temp%\sendtoftp.logdel %temp%\sendtoftp.logNote:set rdir=/YOUR_REMOTE_DIR_GOES_HEREstarting with "/"for example:set rdir=/new folderif you have a folder called "new folder" in your root directory of the remote machine
April 12, 200620 yr Author How would i go about adding this to an unattended install? Is there a default send to foldeR?
Create an account or sign in to comment