Jump to content

Freshprince

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Freshprince

  1. Hey!very nice that If Loop:)And thanks for the progress bar tip;) But: My Props are,i dont know where i have to fill in the download path where i fill in the directory in which it should be saved AND i dont know,what do i fill in ,in the field FtpOpen?For What stands this?
  2. And a Question ive forgotten: Is it possible,to see how far the progress of the download is? Sorry for the Questions,im just a beginner...
  3. Hey everyone! I want to connect to a FTP server,and if that is done,i want to download files and save them directly to a special directory,but it doesnt work. $server = 'ftp://ftp.bla bla' $username = '' $pass = '' $Open = _FTP_Open('Comes in here the Directory?? ') $Conn = _FTP_Connect($Open, $server, $username, $pass) _FTP_FileGet($l_FTPSession, $s_RemoteFile, $s_LocalFile [, $fFailIfExists = False, [ $dwFlagsAndAttributes = 0 [, $l_Flags = 0 [, $l_Context = 0]]]]) $Ftpc = _FTP_Close($Open) My Questions are: I got no username or pw needed,so i can erase that ,and erase it from $conn? At the Position FTPFileGet where come things like,the download directory,where it should be saved etc? Would be very pleased,if someone can help me:)
  4. Hey everyone! Got two Questions.. With InetGet i can download a file... I want to download a directory from ftp how would be the code for that? And : Is it possible,that i can run a makro,for example every 3 months ,at f.e. 11.30?Can i make it time controlled? Thx for all answers!!
  5. Hey! I thank you very much for that help. More important i also understand what my fault was. Very pleased about the help,thanks to everybody!
  6. That was my original script it should 1.remove a directory ,load a project data create a directory and open a programm which works and after that the other programs begin..so far it worked all.. 2. BUT the next step is,a directory should been searched after the 4 diffrent datatypes,and then,if there are datas in the directory a batch should been startet,or when no datas in a msg box should open and say "no datas in here. #include <string.au3> #include <array.au3> #include <file.au3> $SearchDir="M:\AUTO_JOB\ALK_Daten\Tab" $SearchFiles= "*.DAT" $SearchFiles= "*.MAP" $SearchFiles= "*.IND" $SearchFiles= "*.ID" DirRemove("M:\AUTO_JOB\Tab") InetGet("ftp:andsoon...", "AL001_001_0000_00_GF_TB.prj",1) Sleep(1000) DirCreate("M:\AUTO_JOB\Tab") ShellExecuteWait("M:\AUTO_JOB\Programm") $FolderList=_FileListToArray($SearchDir & "M:\AUTO_JOB\Tab", $Searchfiles,1) If (Not IsArray($FolderList)) then MsgBox(0,"No Data in here",1) ELSE Run("M:\AUTO_JOB\Batch.bat") EndIf EndIf
  7. Hey! First i wanna thanks for the Script you postet! And i`ve got questions:) So,i tried it,but it comes always the Messagebox with" No data in here" ,even when i have datas in the tab directory i just made a data with the search function and if datas the batch should run... in the line " $FolderList=_FileListToArray($SearchDir & "M:\AUTO_JOB\ALK_Daten\Tab", $Searchfiles[$i],1)" i made $SearchFiles so a big F..But that wasnt the point.. so what could be the problem?
  8. Hey everyone! Iam working on a project it should do the following: - Clear a directory && download some content (works) - After this, it should open a programm and the following ones,have to wait (works) - A search has to be done,for a specific directory,if there are no datas,there comes a massage box with" no datas in here" , or when datas there,a batch runs . my code is this #include <string.au3> #include <array.au3> #include <file.au3> $SearchDir="M:\AUTO_JOB\ALK_Daten\Tab" $SearchFiles= "*.DAT" $SearchFiles= "*.MAP" $SearchFiles= "*.IND" $SearchFiles= "*.ID" DirRemove("M:\AUTO_JOB\Tab") InetGet("ftp:andsoon...", "AL001_001_0000_00_GF_TB.prj",1) Sleep(1000) DirCreate("M:\AUTO_JOB\Tab") ShellExecuteWait("M:\AUTO_JOB\Programm") $FolderList=_FileListToArray($SearchDir & "M:\AUTO_JOB\Tab", $Searchfiles,1) If (Not IsArray($FolderList)) then MsgBox(0,"No Data in here",1) ELSE Run("M:\AUTO_JOB\Batch.bat") EndIf EndIf I would be very very happy if someone could help me with that,im tryin for hours /and nothing goes:( and one question to it :i know with Inetget you can download ,i can do it with one data..Does it works with a directory?? Thank you,to everyone who helps me:)
×
×
  • Create New...