Forums Cache
Copyright MonkeyJob Systems 2005
All rights reserved

Home FAQ Current Forums Contact
 Search For Data
   

Copy Multiple Files to Multiple Folders / Locations

Related Topics:
Command Line Feature
FileMonkey Support Page

Author Message
rjs34id I reqire to copy multiple Files to multiple folders, is this currently possible in FileMonkey. If not it would be a very usefull feature.

Another usefull feature would be to allow renaming of files from the file contents.

monkeyjob
Site Admin


Joined: 13 Jan 2005
Posts: 25
Location: United Kingdom
Hi,

<quote>

I reqire to copy multiple Files to multiple folders, is this currently possible in FileMonkey. If not it would be a very usefull feature.

</quote>

It would depend on exactly how you require the operation set up. For example, you can copy files to folders, dynamically making the folders using tags with the copy/move feature.

Or you may find the interface of FoldMonkey more user friendly for this task:

http://www.monkeyjob.com/FoldMonk.html

You can target multiple files with FileMonkey using the file filters available in the main window - click the "Use filters" arrow to view the available filters.

There is a file targeting tutorial available here:

http://www.monkeyjob.com/FileMonk/FMExamp/Filter-Files-Date-Pattern-Size.htm

and a basic copy move tutorial here:

http://www.monkeyjob.com/FileMonk/FMExamp/Copy-Move-Files.htm

<quote>

Another usefull feature would be to allow renaming of files from the file contents

</quote>

How do you require this setup. For example, is there some specific text that you need to extract from a file(s) or do you have a list of filenames to rename from.

If you have a list, you could try Rename From List:

http://www.monkeyjob.com/RenList.html

Regards,
monkeyjob.

rjs34id As regards to copying multiple files to multiple folders I will give an example it might make it clearer to what I am looking for:

In this folder:
C:\TEST\Templates
are 10 files called:
test00.txt - test10.txt

In C:\TEST are 5 other Sub Folders
tstFolder1 - tstFolder5

I want to copy the 10 files in C:\TEST\Template to all the other Sub Folders.

As regards to naming a file from its file contents what I had in mind was naming the file from say what fell between the title tags in a html document or what fell after a custome tag like 'filename='.

monkeyjob
Site Admin


Joined: 13 Jan 2005
Posts: 25
Location: United Kingdom
Hi,
the only method that we could think of to do this is using the command line feature and the copy files.fm script. However, you would have to edit the "File" section of the script. For example change the following lines:



if exist %DestDir%"\<myFile>.<myExt>" echo Could not copy file: "<myFold><myFile>.<myExt>">> C:\Errors.txt

if not exist %DestDir%"\<myFile>.<myExt>" xcopy/H/K/Y <myDosFold><myDosFile> %DestDir%



to:




xcopy/H/K/Y <myDosFold><myDosFile> "c:\test\tstFolder1\"

xcopy/H/K/Y <myDosFold><myDosFile> "c:\test\tstFolder2\"

xcopy/H/K/Y <myDosFold><myDosFile> "c:\test\tstFolder3\"

xcopy/H/K/Y <myDosFold><myDosFile> "c:\test\tstFolder4\"

xcopy/H/K/Y <myDosFold><myDosFile> "c:\test\tstFolder5\"




and then run the job (click the compile and run arrow), ignoring the message about c:\_backup

Although this is a passive operation, you may want to back up your files first, just in case.


As for your second task, there is no easy way to do this. Here is the very basic outline to the method that we would use to do this although, it's a bit tricky:




Use the "Extract" feature of FileMonkey to extract the required text, with the "combine results" check box unchecked (cleared).

Save the results to a text file.

Use the "Replace" feature to convert the results file into a batch job.

Run the batch job.




Regards,
monkeyjob.




  | About Us | Privacy | Terms | Affiliates | Partners | Copyright 2003 MonkeyJob Systems All Rights Reserved |