Copyright MonkeyJob Systems 2005
All rights reserved

Home FAQ Forums Contact
Download Tutorials FAQ Awards Report Bugs
 Search For Data

Can I make copies of a source file and copy it to multiple locations. I want to put robots.txt into multiple httpdocs folders that dont already have one there

The following tutorial will demonstrate using the command line feature of FileMonkey to make a copy of a single source file in every sub folder of a root folder.

For example, you could use this feature to make a copy of c:\robots.txt in every sub folder of your target folder.


Use the folder tree on the left of the main window to navigate to the root folder that you wish to work on.

As you are working on sub folders, tick the "Include Sub Folders" tick box.

Tick the "Include Hidden Folders" box if you also want to include hidden folders.

This operation will copy a source file to the root folder that you have navigated to and all sub folders of that folder.


Once you have targeted your folder, select the "Quick-Find, Command Line" menu item from the main window.


The Create/Run batch file window should now be open

make batch jobs

load batch jobs

Load Script


From the menu bar at the top of this window, select the "File / Load Code" menu item.


This will open the load file dialogue box.

Use this box to navigate to the folder that FileMonkey is installed in (This is usually something like: C:\Program Files\FileMonk)

Select the file CopyOne File To Many Folders.FM and click the "Load" button.


Next, you need to enter the path of the source file that you wish to use.

In the "Head" section, find the following line:

set SrcFile="C:\robots.txt"

Replace Files With Source File


We have entered the file "C:\robots.txt" as the default source file. You may want to change this to something else if your source file is on a different path or has a different name.

Delete the text "C:\robots.txt" and enter the file and path that you wish to use here.

You MUST keep the encompassing quote marks otherwise this operation may not work.

For example: If you wish to use the file C:\New Folder\List.txt then replace the line:

set SrcFile="C:\robots.txt"

with the line:

set SrcFile="C:\New Folder\List.txt"


To start the operation, select the "File/Compile And Run" menu item.
Related Topics:
FileMonkey Tutorials
Frequently Asked Questions
FoldMonkey - Create folders and or copy or move files.

  | About Us | Privacy Policy | Terms Of Use | Affiliates | Forums | Copyright 2003 MonkeyJob Systems All Rights Reserved |