AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Another FTP uploading problem...

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
eternalcold



Joined: 12 Jun 2008
Posts: 8

PostPosted: Mon Jun 23, 2008 5:35 am    Post subject: Another FTP uploading problem... Reply with quote

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
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Mon Jun 23, 2008 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
milos.kopecky



Joined: 22 Jun 2008
Posts: 3

PostPosted: Tue Jun 24, 2008 9:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group