Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/22/2016 in all areas

  1. ...even my code from post #19 it works and meets the requirements, ..... and not only... in addition it can also function to compare not only three files, but even more than 3 files if necessary. p.s. I let the output report a bit "incomplete" cause is not very clear if the numbers sought must appear in all the files (in all three in this case) or it's ok even if they appear in more than just one file even if not in all three?
    1 point
  2. Considering the requirements mentioned in post #22, my code in post #18 works
    1 point
  3. asiawatcher, Try this... Wait one...OK, try this...not tested completely... #include <array.au3> local $aSizes[3][2] $aSizes[0][0] = FileGetSize(@scriptdir & '\f1.txt') $aSizes[0][1] = '\f1.txt' $aSizes[1][0] = FileGetSize(@scriptdir & '\f2.txt') $aSizes[1][1] = '\f2.txt' $aSizes[2][0] = FileGetSize(@scriptdir & '\f3.txt') $aSizes[2][1] = '\f3.txt' _arraysort($aSizes,1) local $str1 = fileread(@scriptdir & $aSizes[0][1]) local $str2 = fileread(@scriptdir & $aSizes[1][1]) local $str3 = fileread(@scriptdir & $aSizes[2][1]) local $astr1 = stringsplit($str1,','), $save_num ; create matching boundries to prevent "3" matching on "13", etc... if stringlen($str2) > 0 then $str2 = '|' & stringreplace($str2,',','|') & '|' if stringlen($str3) > 0 then $str3 = '|' & stringreplace($str3,',','|') & '|' for $i = 1 to $astr1[0] if ( stringinstr($str2, '|' & $astr1[$i] & '|') or stringlen($str2) = 0 ) _ and _ ( stringinstr($str3, '|' & $astr1[$i] & '|') or stringlen($str3) = 0 ) _ then $save_num &= $astr1[$i] & ',' next ConsoleWrite(stringtrimright($save_num,1) & @CRLF)  kylomas
    1 point
  4. Any fast enough IPC will do. For instance search the forum for MailSlot by trancexx.
    1 point
  5. PACaleala

    @Comspec pipe

    Part of the command line should be changed to "Echo Y | ...." to make sure that PLINK always gets the intended confirmation @" Store key in cache? (y/n) "
    1 point
  6. iamtheky

    @Comspec pipe

    I cant get Y to work as the first thing after a pipe at all, for anything. tells me y is not recognized as a command. I think that is perhaps jgunich's issue as well
    1 point
  7. iamtheky

    @Comspec pipe

    I dont see how that would work either. In practice I would connect to that with putty, save that session. And then call that session from Plink. http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter7.html ^^ bonus quote I cant get rid of
    1 point
  8. jguinch

    @Comspec pipe

    Sorry, I don't understand how it can work. Maybe someone else ?
    1 point
  9. jguinch

    @Comspec pipe

    What is Echo |Y supposed to do ? It's not relative to AutoIt, you cannot execute that in a command prompt Run(@ComSpec & ' /k Echo | Y')
    1 point
×
×
  • Create New...