frontmill Posted May 10, 2006 Share Posted May 10, 2006 hi all... i'm working on a chatlog history backupper and now i want to upload a zip file (the logs) to my ftp (by using windowsbuilt-in ftp client). So i tried this with a batch: @echo off ftp open revealgames.net frontmill@revealgames.net password put c:\logs.zip quit exit but that doesn't work, if i dont do the echo off my dos keeps sending the ftp command over and over without a result. If i do use the @echo off dos starts but nothing happens. anyone knows a solution? (preferably one without using a batch file, but if you know a way to fix it using the batch you'll make me very happy as well) Link to comment Share on other sites More sharing options...
seandisanti Posted May 10, 2006 Share Posted May 10, 2006 hi all... i'm working on a chatlog history backupper and now i want to upload a zip file (the logs) to my ftp (by using windowsbuilt-in ftp client). So i tried this with a batch: @echo off ftp open revealgames.net frontmill@revealgames.net password put c:\logs.zip quit exit but that doesn't work, if i dont do the echo off my dos keeps sending the ftp command over and over without a result. If i do use the @echo off dos starts but nothing happens. anyone knows a solution? (preferably one without using a batch file, but if you know a way to fix it using the batch you'll make me very happy as well)"@echo off" doesn't affect the way that the batch file is working, meaning it doesn't make it do anything differently except it doesn't send output to the screen. it's still just doing the same thing of sending the ftp command over and over without a result. Link to comment Share on other sites More sharing options...
AutoChris Posted May 10, 2006 Share Posted May 10, 2006 hi all... i'm working on a chatlog history backupper and now i want to upload a zip file (the logs) to my ftp (by using windowsbuilt-in ftp client). So i tried this with a batch: @echo off ftp open revealgames.net frontmill@revealgames.net password put c:\logs.zip quit exit but that doesn't work, if i dont do the echo off my dos keeps sending the ftp command over and over without a result. If i do use the @echo off dos starts but nothing happens. anyone knows a solution? (preferably one without using a batch file, but if you know a way to fix it using the batch you'll make me very happy as well)You can have AutoIt create a batch file (FileOpen), run it and then delete it when you are finished with it. Link to comment Share on other sites More sharing options...
seandisanti Posted May 10, 2006 Share Posted May 10, 2006 You can have AutoIt create a batch file (FileOpen), run it and then delete it when you are finished with it.or just use ftp.au3 to upload the file without batch file... Link to comment Share on other sites More sharing options...
frontmill Posted May 10, 2006 Author Share Posted May 10, 2006 You can have AutoIt create a batch file (FileOpen), run it and then delete it when you are finished with it.that wouldn't make any diffrence.. it would still be the same bat file.. right?and where can i find more info about ftp.au3? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 10, 2006 Moderators Share Posted May 10, 2006 and where can i find more info about ftp.au3? Theres this thing called "Search" at the top of your page here, type in "ftp.au3" in the search menu (maybe scripts and scraps specific) might work? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
frontmill Posted May 10, 2006 Author Share Posted May 10, 2006 (edited) yeah i did that lol.. this is my script nowm with the records i always use when i go to my ftp with IE... $server = 'ftp://frontmill@revealgames.net' $username = 'frontmill@revealgames.net' $pass = 'geheim2' $Open = _FTPOpen('MyFTP2') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn, 'C:\logs.zip', 'logs.zip') $Ftpc = _FTPClose($Open) MsgBox(0,"1",$Open & " " & $Conn & " " & $Ftpp & " " & $Ftpc) Edited May 10, 2006 by frontmill 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