Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

FTP-uploading with the help of AHK


  • Please log in to reply
19 replies to this topic
DJAnonimo
  • Members
  • 171 posts
  • Last active: Apr 30 2013 01:20 AM
  • Joined: 10 Sep 2006
Example renaming index.html to index.php

USAGE:

FtpRenameFile(hConnection, "index.html", "index.php")


RENAME FUNCTION:
FtpRenameFile(hConnection, Existing, New)
{
  return DllCall("wininet\FtpRenameFileA", "uint", hConnection, "str", Existing, "str", New)
}


voodoochild01
  • Guests
  • Last active:
  • Joined: --
when the file is about to upload if ur firewall in ON,it usually asks u a permission to allow access to it.. is there any way to upload the file without the permisson even when the firewall in ON?? help me..i need to upload a file in stealth mode :D

aemccoo
  • Members
  • 5 posts
  • Last active: Jul 14 2015 01:56 PM
  • Joined: 02 Dec 2013

hi benny i appreciate verymuch you guys are working here ,  incase you ever come online leave me a message
just incase you got a clean script already please do help me with mine as well thx.

was planning to integrate , ip_wan script that i got from the forums, integrate it on your clean script of ftp
then additional automations, and create a small vpn server-client too , btw, im using

#by far using the ftp and ip_wan script can make a dynamic ip morelikely close to static already. thx

autoplay media studio 8 
AHK
pulover's macro creator


===============
 //login section//
etcetcetcetcetcetc.
===============
// gui section //
etcetcetcetcetcetc.
===============
//function,program//
etcetcetcetcetcetc.
===============

 



iiooii
  • Members
  • 2 posts
  • Last active: Dec 30 2015 05:00 PM
  • Joined: 28 Dec 2015

hello,

is the first time for me ask in forum, someone can help me?
I cannot insert the name of the variable after the command "FTP_Connect" maybe don't work the command
thank you for the help

 

 

;------------Send the HTML via FTP to server-------------
FTP_Connect(Host, User, Pass, File)      ; necessary Call the next Function
FTP_Connect(Host, User, Pass, File)     ; Function Execute
FTP_Connect(Host, User, Pass, File)
{
    
File = index.html                                           ;send index.html ok
File1 = %myvar%                                          ;try here but inside var is blank  :(

msgbox %File% `n %File1%

FTPCommandFile = %A_ScriptDir%\FTPCommands.txt
  FTPLogFile = %A_ScriptDir%\FTPLog.txt
  FileDelete %FTPCommandFile%

FileAppend,
(
open
%Host%
%User%
%Pass%
binary
put %File%
put %File1%
quit
), %FTPCommandFile%

RunWait,%comspec% /c ftp.exe -s:"%FTPCommandFile%" >"%FTPLogFile%",,Hide ; HiDE MODE
; FileDelete %FTPCommandFile%  ; Delete for security reasons.
; FileDelete %FTPLogfile%  ; Delete for security reasons
}
;-------------------------------------------------



iiooii
  • Members
  • 2 posts
  • Last active: Dec 30 2015 05:00 PM
  • Joined: 28 Dec 2015

hello,
someone can help me?
I use win7 "ftp.exe" and didnt work the variable name after the command "FTP_connect"

any other file copy works, but declared in variable doesn't work.

thank you in advance :shy:

;-------------------------------------------------------------------

;------------Send the HTML via FTP to server-------------
FTP_Connect(Host, User, Pass, File)      ; necessary Call the next Function
FTP_Connect(Host, User, Pass, File)     ; Function Execute
FTP_Connect(Host, User, Pass, File)
{
    
File = index.html                      ;send index.html ok
File1 = %myvar%                        ;try here but inside var is blank

msgbox %File% `n %File1%

FTPCommandFile = %A_ScriptDir%\FTPCommands.txt
  FTPLogFile = %A_ScriptDir%\FTPLog.txt
  FileDelete %FTPCommandFile%

FileAppend,
(
open
%Host%
%User%
%Pass%
binary
put %File%
put %File1%
quit
), %FTPCommandFile%

RunWait,%comspec% /c ftp.exe -s:"%FTPCommandFile%" >"%FTPLogFile%",,Hide ; HiDE MODE
; FileDelete %FTPCommandFile%  ; Delete for security reasons.
; FileDelete %FTPLogfile%  ; Delete for security reasons
}
;-------------------------------------------------