FILEMONKEY FAQ
Copyright MonkeyJob Systems 2005
All rights reserved

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

Creating a new folder in all sub-folders



You can use the "Create Folder Static.FM" script with the command line feature of FileMonkey. This will create a new empty folder in every sub-folder of the target path.

Note that although this script will work as required, FoldMonkey (a more user friendly package) can also do this.

If you want to create folders from file names, use the "Create Folder Dynamic.FM" script.

If you want to create folders and then copy or move files, use the "Copy" feature of FileMonkey.

Read on for step-by-step instructions to create a new empty folder in every sub-folder:

1.

Use the folder tree in the main window to target the root folder (the path that you wish to work on). Click HERE for a targeting tutorial.

2.

Select the "Quick-Find / Command Line" menu item.

3.

The Create/Run batch file window should now be open

Fig 1

make batch jobs

4.

Select the "File / Load Code" menu item.

Fig 2
load batch script

5.

This will open the load file dialogue box (Fig 2).

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 "Create Folder Static.FM" and click the "Load" button.

6.

Next, you need to enter the name of the new folder that you wish to create.

Fig 3
create new folders

7.

Find the following line:

set myName="New Folder"

You will need to change this line to reflect the name of the new folder. For example, if you changed this line to:

set StartText="my data folder"

then each new folder will be named "my data folder"

8.

If you want to include all sub-folders then you will need to check the "Include Sub Folders" check box (Fig 3). If you only want to work on the folders in the root folder then clear this box.

9.

To start the operation, select the "File / Compile And Run" menu item.



Related Topics:
FileMonkey Tutorials
Frequently Asked Questions
FoldMonkey - Create folders based on file names
Using the command line feature to delete empty folders
Using the command line feature to move files
Using the command line feature to copy files

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