AutoHotkey Community

It is currently May 27th, 2012, 1:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: March 9th, 2009, 12:01 am 
Offline

Joined: September 13th, 2008, 9:05 pm
Posts: 4
I was having tons of trouble getting blat to work, and also couldn't get the dllcall with FTP to work. So I made my own workaround with the built in windows FTP client. I tested it on 32bit XP, someone test if it works on vista?

Code:
#notrayicon
username=;put your Autohotkey.net username here
password=;put your Autohotkey.net password here
DetectHiddenWindows, on
run ftp.exe
winwait, C:\WINDOWS\system32\ftp.exe
Winhide, C:\WINDOWS\system32\ftp.exe
controlsend,, open autohotkey.net{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, %username%{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, %password%{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, append C:\test.txt test.txt{return}, C:\WINDOWS\system32\ftp.exe
sleep 50
controlsend,, bye{return}, C:\WINDOWS\system32\ftp.exe


obviously you need to enter your username and password for Autohotkey.net, it would also work for any other FTP server if you changed autohotkey.net to whatever server you wanted to use.

it will upload C:\test.txt to the default folder of your AHK.net account as test.txt.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2009, 11:11 am 
Did you ever see the example in the help-file?
http://www.autohotkey.com/docs/commands/FileAppend.htm (see last example)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group