Sign in to follow this  
Followers 0
notjes

search *.default

2 posts in this topic

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



#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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0