Jump to content

snoozer

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by snoozer

  1. damn..-.- okay this was to easy (thx for your solution )^^ here the version with the wininet.dll Func _FTPGetFileSize($l_FTPSession, $s_FileName) Local $ai_FTPGetSizeHandle = DllCall('wininet.dll', 'int', 'FtpOpenFile', 'long', $l_FTPSession, 'str', $s_FileName, 'long', 0x80000000, 'long', 0x04000002, 'long', 0) Local $ai_FTPGetFileSize = DllCall('wininet.dll', 'int', 'FtpGetFileSize', 'long', $ai_FTPGetSizeHandle[0]) If @error OR $ai_FTPGetFileSize[0] = 0 Then SetError(-1) Return 0 EndIf DllCall('wininet.dll', 'int', 'InternetCloseHandle', 'str', $l_FTPSession) Return $ai_FTPGetFileSize[0] EndFunc ;==> _FTPGetFileSize() this is not my version...i don't know who wrote this so i can't mention the source(just get this from a friend)^^ so still missing the "date" function..any idea?? thx a lot snoozer
  2. hey everybody i just want to know if there is a ftp function that returns the filesize of the ftp file(e.g. 128 kb)?? furthermore i wannt to know how i can get the last date of change or creation of a ftpfile(e.g. 06-17-2007 14:23)?? i hope that was it for the moment thx a lot for (positiv) reply snoozer
  3. checkout the shutdown function.....
  4. hi everybody this is a post for a friend ------ first i had to comment out "If @error Then Failed("Open") & If @error Then Failed("Connect")" to successfully run this script after that it seemed that the download has started - anyway the file was available on hdd - BUT the progressbar was not visible and the script did NOT shutdown tidly - unfortunately i had to shutdown this script manually....by the way the two @error requests had no effect to this script.....maybe this is a unique error autoit rules^^ snoozer
  5. mhhh use Any2Icon this tool can convert bmp,gif,jpg,png,psd,wmf,dip,wbmp,jpeg,pdd,emf,cur,ani,(ico) to an icon more Features: this tool can also extract the icon from an exsisting file(icl,nil,dll,exe,cpl,ocq,vbx) unfortunately this is no freeware but trust me or not, you can find a lot of registrationkeys in the worldwideweb....
  6. firstable i want to say i browsed this forum for this topic but didn't found anything matching to my problem i'm sorry for annoying some people here is my problem i want to upload a file(in the same dictionary like my script) and upload it to a server in the dictonary "/upload_dir/". When you look in the script you'll see(or not ) that i want to change the name of the file in this way: "sometext"+"_"+"current time". The messagebox is therefor to check whether this script works or not. Here the script #include<ftp.au3> $server = "151.189.20.30";can take ip or hostname: home.arcor.de(german host) $username = "mynick";i know this $pass = "mypass"; and this either :lol: $passive = 1; 0 = active, 1 = passive (just found in this forum :graduated: ) $dir = "/upload_dir/";dictionary where the file have to be uploaded $time = @HOUR&":"&@MIN&":"&@SEC ; current (local) time $additional_text = "hello_world";additional text changes when user change(=variable) $Open = _FTPOpen("MyFTP Control") $Conn = _FTPConnect($Open, $server, $username, $pass,$passive) $Ftpp = _FtpPutFile($Conn,@ScriptDir&"\file.txt",$dir&$additional_text&"_"&$time&".txt") MsgBox(0,"",$Conn&" "&$Ftpp);return 0 0 => failure $Ftpc = _FTPClose($Open) ;to change dictonary in this way _FtpSetCurrentDir($Conn, "/upload_dir/") doesn't work either cause a problem occours when i want to connect to "my" server i hope somebody can help me thx a lot /snoozer
×
×
  • Create New...