robeert 0 Posted August 31, 2007 Hy! can anyone help me with this problem? I want to copy one file in one or more dir, but the problem is that i know only a part of the name of the dir. xxx.txt -> \direct*\ And... i'm a beginner in autoit Share this post Link to post Share on other sites
rasim 24 Posted August 31, 2007 robeert#include <File.au3> Dim $dir = "direct", $ipath = "c:\test", $ifile = "c:\test.txt" $FileList = _FileListToArray($ipath, "*", 2) For $i = 1 To $FileList[0] If StringInStr($FileList[$i], $dir) Then FileCopy($ifile, $ipath & "\" & $FileList[$i]) Next Share this post Link to post Share on other sites