Jump to content
Sign in to follow this  

search *.default

Recommended Posts


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)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.