Jump to content

Autoit Ile Ftp Server Kurma, Bağlanma


isimsiz2
 Share

Recommended Posts

Sen misin örnek isteyen :p

https://www.dropbox.com/s/qcuhysglg5ycuab/kaspersky.yonetici.au3
bu çok eskiden kaspersky anahtarlık uygulaması için yazdığım yönetici uygulamasıydı.İçinde seni ilgilendirmeyen bir çok şey var ve karmaşık gelebilir fakat ctrl+f yapıp _Ftp diye aratıp inceleyebilirsin.
Link to comment
Share on other sites

Ftp server kurmaya çalıştım ama başaramadım _Ftp_connect kodu hata veriyor lütfen bana yardım edin :pc: 

ben ftp serveri lan için kurmak istiyorum şifresiz kurabilirmiyim $pass="" diyerek


#include <Misc.au3>
#include <FTPEx.au3>
OnAutoItExitRegister("_mexit")
Local $Open = _FTP_Open('MyFTP Control')
if @error Then Exit 1
$server="orange"
$username="elma"
$pass="armut"
Local $connect =_FTP_Connect($open,$server,$username,$pass)
if @error Then Exit 2; errpr veriyor ne yapmam lazım _ftp_connect komutu nasıl kullanılır.
Local $localfile=(@ScriptDir&"\myftp.txt")

Local $remloc=("/root/Dhcp/myftp.txt")
_FTP_FilePut($connect,$localfile,$remloc)
if @error Then Exit 3
$remotefile="msyftpfiledir"
$fo=_FTP_FileOpen($connect,@ScriptDir&"/root/Dhcp/myftp.txt")
if @error Then Exit 4
$read=_FTP_FileRead($fo,1)
if @error Then Exit 5
ConsoleWrite("the read is:")
ConsoleWrite($read)
While True
if _IsPressed("4b")  Then ExitLoop
	WEnd
Local $Ftpc = _FTP_Close($Open)
Func _mexit()
ConsoleWrite("The error code is:"&@error&"<==")
EndFunc

:wtf:

Link to comment
Share on other sites

Hata vermesi kodlardan dolayı değil muhtemelen girdiğin bilgilerden dolayı.Kullanıcı adını "kullanıcıadı@domain.name" ve şifreyi doğru girdiğinden emin ol.Ayrıca şifreyi boş bırakacağına 123456 yap kodun içinde yaz illa boş bırakma çabası neden?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...