Mikep7779 Posted April 11, 2006 Author Share Posted April 11, 2006 (edited) Has to be the LOCAL dir Even when i try ftp://00000000/public_html/Junk/No go. Edited April 11, 2006 by Panda67 Link to comment Share on other sites More sharing options...
PITU Posted April 11, 2006 Share Posted April 11, 2006 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 Link to comment Share on other sites More sharing options...
Mikep7779 Posted April 11, 2006 Author Share Posted April 11, 2006 Logs arent the only files i want to send, so that script wont help. thanks anyway. Link to comment Share on other sites More sharing options...
PITU Posted April 11, 2006 Share Posted April 11, 2006 (edited) 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, 2006 by PITU Link to comment Share on other sites More sharing options...
Mikep7779 Posted April 11, 2006 Author Share Posted April 11, 2006 Awsome, thanks, can i set my default dir with this? Link to comment Share on other sites More sharing options...
PITU Posted April 12, 2006 Share Posted April 12, 2006 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 Link to comment Share on other sites More sharing options...
Mikep7779 Posted April 12, 2006 Author Share Posted April 12, 2006 thanks, i tried set dir=/YOUR_REMOTE_DIR_GOES_HERE, didnt work D: Link to comment Share on other sites More sharing options...
Mikep7779 Posted April 12, 2006 Author Share Posted April 12, 2006 How would i go about adding this to an unattended install? Is there a default send to foldeR? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now