| View previous topic :: View next topic |
| Author |
Message |
eternalcold
Joined: 12 Jun 2008 Posts: 8
|
Posted: Mon Jun 23, 2008 5:35 am Post subject: Another FTP uploading problem... |
|
|
Hey everyone.. I am having a bit of trouble.. i used the search and found many posts, but none seemed to help me out... i cant seem to get my file uploaded to my FTP.....
| Code: | #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
FTPCommandFile = %A_ScriptDir%\FTPCommands.txt
FTPLogFile = %A_ScriptDir%\FTPLog.txt
FileDelete %FTPCommandFile% ; In case previous run was terminated prematurely.
File = %A_ScriptDir%\Computer_info.jar
FileAppend,
(
open darkalley.987mb.com
XXXX
YYYY
cd /log
put %file%
ls -l
quit
), %FTPCommandFile%
RunWait %comspec% /c ftp.exe -s:"%FTPCommandFile%" >"%FTPLogFile%"
FileDelete %FTPCommandFile% ; Delete for security reasons.
Run %FTPLogFile% ; Display the log for review.
|
the log always tells me that there were 0kb uploaded... and the file is nowhere on my server... i am getting a bit frustrated... *sheds tear* can you give me some help? |
|
| Back to top |
|
 |
Icarus
Joined: 24 Nov 2005 Posts: 851
|
Posted: Mon Jun 23, 2008 9:06 pm Post subject: |
|
|
Tested your script and it works ok on my ftp.
Can you post the complete log you are getting?
EDIT:
After the put command, I get this output to my log:
| Code: |
200 PORT command successful
150 Opening ASCII mode data connection for File.txt
226 Transfer complete
ftp: 593 bytes sent in 0.00Seconds 593000.00Kbytes/sec.
|
|
|
| Back to top |
|
 |
milos.kopecky
Joined: 22 Jun 2008 Posts: 3
|
Posted: Tue Jun 24, 2008 9:10 am Post subject: |
|
|
Hi, I have maybe the same problem as eternalcold has.
When I connect, in log is
| Code: | | 200 PORT command successful |
, but after this it all freezes and doing nothing, when i kill it, log shows with last command of that 200 .... |
|
| Back to top |
|
 |
|