notjes 0 Posted July 22, 2010 hi there is there a way to find all *.default and copy something to this folder i need to copy something for 30000 users under the C:\Documents and Settings\user profile\Application Data\Mozilla\Firefox\Profiles Share this post Link to post Share on other sites
Danny35d 15 Posted July 22, 2010 #include <Array.au3> #include <File.au3> Local $AppData = @AppDataDir & '\Mozilla\Firefox\Profiles' Local $AppDataList = _FileListToArray($AppData, '*.default', 2) _ArrayDisplay($AppDataList, $AppData) For $x = 1 To $AppDataList[0] ;Copy single file FileCopy('CopySomething', $AppData & '\' & $AppDataList[$x], 9) ;Copy a directory DirCopy('CopySomething', $AppData & '\' & $AppDataList[$x], 1) Next AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Share this post Link to post Share on other sites