Copy several files to single folder subfolders

Hi everyone, I'm looking for a way that I can copy all my subfolders jpg files in a single folder, without having to actually go in each subfolder and perform a Drag and Drop.

Each subfolder is in the same tree of directory (for example):

d:\work Files\Colors\Finished\1

...

d:\work Files\Colors\Finished\1200

There are three jpg I want to copy in each subfolder.  I want all the jpg in each subfolder to go to a single folder:

color files d:\Completed

I tried to use the for/r %d in (.) can I copy %d*.jpg d:\Completed color files

The command copy fails because the %d (current path) has one. the end of it.  Can someone help me out here, I really want to have to do all these by drag and drop.

Bob

That should do it, assuming that you want to copy the entire contents of each subfolder (i.e. the subfolders contain only three jpg files):

CD /d "d:\work files\colors\finished".

for %d in (*) /r copy "%d" "color files d:\Completed" Boulder computer Maven
Most Microsoft Valuable Professional

Tags: Windows

Similar Questions

  • Copy several files to the command prompt

    I want to create a batch file copy several files that I specified a directory and use a command once. but when I tried to 'copy file1 + file2 + file3 destDir', it copies only the first file. I do not copy all of the files or the files whose names share a model. If the wildcard characters * and? does not apply here. What should I do to copy several files?

    You probably want to use a command like this:
    for /f %i in (list.txt) can I copy/b %i destDir
    Where "list.txt" is a file that contains a list of the files that you want to copy and 'destDir' is the directory you want to copy.  If you put this line in a '.bat' file, you may need to replace each character "%" to "%".

    Or, if it's a short list of files, you could do something like:
    for %i in (file1, file2, File3) can I copy/b %i destDir

    HTH,
    JW

  • How to copy a file from one folder to another?

    Windows 7, my images: how to COPY a file from one folder to another?

    Right-click on the file and drag it to the other folder. Release the button on the right and click on copy here.

  • ID should automatically copy a file in the folder of links

    I had this idea that there should be a feature in InDesign that automatically copies the file in a folder.

    Sometimes it's really frustrating to get the file and manually copy to the folder of your project links. It would be so easy if you would have only to search for the file when investment he and the ID would automatically copy the file to your folder of links projects. Of course it insists that there is any function to define a project and a folder for it, possibly a name. I think that this would save a ton of time when you have to do a book or some other large publication. I don't know if there is this kind of feature somewhere or the ID 5. It would be a good feature or not?

    In recent versions, it is there already. See wheel of the links Panel menu.

    You can also package it a file to make a copy and collect all the necessary links in one place.

  • How to copy the files in the folder "folder is empty Virus?

    Recently, my Windows XP system has been affected by the Virus. So I formatted my PC. Before formatting, I copied some files to my HARD 1 TB internal drive. After formatting, I can not open these copied files. It says "File is empty" and it has 0 bytes. But I do know there are a lot of files still present in this folder. I desperately need these files. Please help me. (When I open the file, nothing happens. Just remain here where I started). So please help me.

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand that you can not access the files copied to Windows XP.

    I imagine the inconvenience that you are experiencing. I will definitely help you with this

    I suggest you to download and run the latest Microsoft security on your computer Scanner and check if it helps:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: the data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

  • Script commands on several files in the folder

    Hello

    I am very new to JavaScript and I combinded a few codes that I found here to build a swatch color replacement tool. It works very well! The only issue I'm having is that it only works on a single file in the selected folder. I would like that it works on all files in the folder. Am I missing a loop function? Any help much appreciated. Thank you.

    Main code [the script starts here]

    Uncomment to delete the Illustrator warning dialog boxes

    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

    var destFolder sourceFolder, files, type sourceDoc file, targetFile, pdfSaveOpts;

    Select the source folder.

    sourceFolder = Folder.selectDialog ("select the folder with the Illustrator");

    If a valid file is selected

    If (sourceFolder! = null)

    {

    files = new Array();

    fileType = prompt ("select the type of Illustrator files you want to process.") For example: * .ai ',' ');

    Download all the files that match the pattern

    files = sourceFolder.getFiles (file type);

    If (files.length > 0)

    {

    Get the destination to save files

    destFolder = Folder.selectDialog ('Select the folder where you want to save the files.', ' ~');

    destFolder = sourceFolder;

    for (i = 0; i < files.length; i ++)

    {

    sourceDoc = app.open (files [i]); Returns the document object

    App.Paste)

    App.Cut)

    var docRef = sourceDoc;

    with (docRef) {}

    var replaceColor1 = swatches.getByName('YELLOW_Final').color;

    for (var i = 0; i < pathItems.length; i ++) {}

    with (pathItems [i]) {}

    If (filled == true & & instanceof SpotColor fillColor) {}

    If (fillColor.spot.name == 'Yellow TEMP') fillColor = replaceColor1;

    }

    If (stroked == true & & strokeColor instanceof SpotColor) {}

    If (strokeColor.spot.name == 'Yellow TEMP') strokeColor = replaceColor1;

    }

    }

    }

    for (var j = 0; j < stories.length; j ++) {}

    with (stories [j]) {}

    for (var k = 0; k < characters.length; k ++) {}

    with (characters [k] .characterAttributes) {}

    If (instanceof SpotColor fillColor) {}

    If (fillColor.spot.name == 'Yellow TEMP') fillColor = replaceColor1;

    }

    If (instanceof SpotColor strokeColor) {}

    If (strokeColor.spot.name == 'Yellow TEMP') strokeColor = replaceColor1;

    }

    }

    }

    }

    }

    }

    sourceDoc.save ();

    sourceDoc.close ();

    }

    }

    }

    on the other

    {

    Alert ("no file found");

    }

    ZINGERERs wrote:

    -J' I combinded some codes I found here

    You should always reference it these discussions/messages/links, so that we can see the code of original work before tinkering it upward with the changes. I think that its the following thread:

    Muppet Mark Code: http://forums.adobe.com/message/2570586

    ZINGERERs wrote:

    The only issue I'm having is that it only works on a single file in the selected folder. I would like that it works on all files in the folder.

    It works in my test (I did a few test files) and used code marks in some batch code I use. Give it a try, works very well in my tests.

    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var filesFolder = Folder.selectDialog('Select the folder where the (.ai) files are located.', '~');
    if (filesFolder != null) {
        var filesArray = new Array();
        filesArray = filesFolder.getFiles("*.ai");
        if (filesArray.length > 0) {
            var saveToFolder = filesFolder;
            var curDoc;
            for (var f = 0, l = filesArray.length; f < l; f++) {
                curDoc = app.open(filesArray[f]);
                // ------------------------------
                // Muppet Mark Code:
                // Thread: http://forums.adobe.com/message/2570586
                with(curDoc) {
                    var replaceColor = swatches.getByName('YELLOW Final').color;
                    for (var i = 0; i < pathItems.length; i++) {
                        with(pathItems[i]) {
                            if (filled == true && fillColor instanceof SpotColor) {
                                if (fillColor.spot.name == 'Yellow TEMP') fillColor = replaceColor;
                            }
                            if (stroked == true && strokeColor instanceof SpotColor) {
                                if (strokeColor.spot.name == 'Yellow TEMP') strokeColor = replaceColor;
                            }
                        }
                    }
                    for (var j = 0; j < stories.length; j++) {
                        with(stories[j]) {
                            for (var k = 0; k < characters.length; k++) {
                                with(characters[k].characterAttributes) {
                                    if (fillColor instanceof SpotColor) {
                                        if (fillColor.spot.name == 'Yellow TEMP') fillColor = replaceColor;
                                    }
                                    if (strokeColor instanceof SpotColor) {
                                        if (strokeColor.spot.name == 'Yellow TEMP') strokeColor = replaceColor;
                                    }
                                }
                            }
                        }
                    }
                }
                // ------------------------------
                curDoc.save();
                curDoc.close();
                curDoc = null;
            }
        } else {
            alert('No Illustrator (.ai) files found');
        }
    }
    

    Let us know if it works for you, and if it was useful.

  • construction distribution - copy the file to a folder

    How to Configure Distribution Manager to put a file in a folder?

    I want to put fce32.dll in the WINDOWS folder.

    I can include the file but I don't know how to get the installer to place it in the WINDOWS folder.

    Windows XP, CVI 9.0

    Thank you.

    Thank you love, that's what I needed!

  • I am trying to copy a file to another folder, I have the file open, how do the other folder along the side so I can drag and drop

    I have a file on a cd - rw that I try to copy to a different folder, I open the file, but how can I get the new folder the long side so I can drag and drop

    Hi tommckeith,

    ·         What version of the operating system is installed on the computer?

    ·         You try to move the file on the CD to the computer or inside the CD?

    If you want to move the file on the CD for computer, follow the steps in the article.

    Move and copy files using drag and drop

    http://Windows.Microsoft.com/en-us/Windows7/move-and-copy-files-using-drag-and-drop

    Copy and paste a file

    http://Windows.Microsoft.com/en-us/Windows7/copy-and-paste-a-file

    If you try to move the file to the CD, then it is not possible to make changes on the data stored in the CD. You must copy the data to the computer, and then make the necessary changes. You can also make the changes before saving the data to a CD.

  • How to copy several e-mails 'documents' folder on computer

    I need to be able to file my emails in my folders 'documents' normal in the same way that you would save any file.
    They must be recoverable to Thunderbird.
    I can do separately, but want to be able to do several emails to save my sanity!
    Downloaded the Freeviewer module but is unstable and never understand whether to 'HTML' or 'plain text '.
    Thank you.

    That's what you want-

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/

  • copy several files by clicking on its shortcut files

    I have 6 000 files on my computer. I made shortcuts for everything that 6 000 files and send all this file shortcut to a friend and he has select 200 shortcuts files around and sent me. Now I especially want to AUTOMATICALLY copy only 200 files and send it to my friend. while I did not select manually as 200 files?

    Hello

    Thank you for getting back to us with your answer.

    I would like to inform that Microsoft have not developed any such type of Application you are looking for. However, you can use your favorite search engine and looking for this kind of software which may be available from third-party sites.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Let us know if you need more information. We will be happy to help you further.

    Thank you.

  • FTP and Internet Explorer allows me to retrieve all files in a folder with a single click, how in Firefox?

    I want to use FTP to copy several files to a remote machine, so I can burn a backup here. I can't find any syntax in Firefox, but Internet Explorer 8 I can get a Windows-like display of all remote directories, then use Windows commands to 'select all' or 'copy to folder' that is most transferred with any other order. The initial response from WinXP to the FTP command is like Firefox as I recover each file with a separate command.

    Hello, firefox has just simple viewing of files on an ftp server. For more advanced functions, please use an extension like fireftp: https://addons.mozilla.org/firefox/addon/fireftp/

  • You are looking for a way to set permissions of files on a folder so that users can view and copy the files out, but may not change the original file in the folder.

    You are looking for a way to set permissions of files on a folder so that users can view and copy the files out, but may not change the original file in the folder.  They will have to copy the files in the folder to make changes and then copy a review of back in.  Locally and on the network

    Hello

    1. In Windows Explorer, right-click the file or folder you want to work with.
    2. In the context menu, select properties and then in the Properties dialog box, click the Security tab.

    3. In the name list box, select the user, contact, computer, or group to which you want to display permissions. If the permissions are grayed out, this means that the permissions are inherited from a parent object.

    https://msdn.Microsoft.com/en-us/library/bb727008.aspx?f=255&MSPPError=-2147217396

  • Windows Media Library shows several files that are same__

    repair of the media library

    Hello

    You analyze probably two folder that both have music in them.

    WMP11 - Tools - Options - Library tab - folder monitor - expand with down Advanced Options on the left.

    Close WMP using this - you can open WMP to look and then close that you check the results.

    Here are a few utilities to help, be sure to remove duplicates once and good
    folder. If If doubt copy the file to another folder, delete and then check WMP.

    Here are several free utilities and they have all their benefits and their methods.

    Auslogics Duplicate File Finder is the MD5 search engine that allows to find files duplicated content,
    Despite all other matching criteria. It would be useful, for example, when two identical pieces of mp3 or video files
    have different names
    http://www.Auslogics.com/en/software/duplicate-file-Finder

    find and delete the duplicate - free
    http://www.easyduplicatefinder.com/
    Versions Installer and Portable

    Search files in doubles or similar - even binary - free
    http://www.Joerg-Rosenthal.com/en/antitwin/

    quickly find all the files in a folder and its subfolders - free duplicate
    http://www.Mindgems.com/products/fast-duplicate-file-Finder/fast-duplicate-file-Finder-about.htm

    Duplicate File Finder - Smart Port Forwarding - TCP Port Scanner - TCP Port Tunnel - multi-minuterie-free
    http://www.brooksyounce.com/

    Duplicate File Finder software (pictures, mp3, iTunes)
    http://www.Moleskinsoft.com/

    These might be necessary:

    Management information from your library, playlists, and media
    http://www.Microsoft.com/windows/windowsmedia/player/FAQ/library.mspx

    You cannot view, add, or delete items in the library of Windows Media Player 11
    http://support.Microsoft.com/kb/925718

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • When you try to copy a file 'trust' in Vista, get the message 'Copy as administrator'

    I have a computer with Windows Vista Home Premium (32 bit), in which I am an administrator on the computer. I have a file that is "safe" and requires administrator permission to open. Since I am an administrator, I was able to open the file. But when I tried to cut or copy the file, a message appears that I need administrator permissions to open it! Similarly, some programs that create other files (images, for example) must be open as follows so that you can actually save a picture: right click > run as administrator . If you do not open the program in this way, access is denied when you try to save a picture. But back to my account. Like programs, is it possible that I can 'copy as administrator' or 'cut as administrator'?

    I discovered how to copy and paste files using a single command line. Unfortunately, you can't copy the files, not folders. Here's how to copy a file:

    1. Open command prompt
    2. type "copy" without the "sign, while simple letters
    3. press the SPACEBAR once
    4 type the location of the file you want to copy (for example: C:\Users\default_user\file.txt)
    5. press the space bar once more
    6. type in the destination that you want to copy the file (for example: Folder\destination C:\New folder)
    7. press enter and your file should be copied.

  • How to export all the names of files in a folder to simple text file.

    Hello Expertise,

    I am trying to load the names of files in the folder to a table in ODI. then load the data from there to a single table.

    I am able to load the data from 100 files in a folder. using the concept of loop (used ODI gurus: SEVERAL FILES - TARGET SINGLE TABLE - SINGLE INTERFACE link to do this, but right now I need to insert the names of files manually to a table. ) My Question is "is there any jython script or procedure to load all the file names to single table with FILENAME column. ???


    If it please help me do this.


    Thank you

    Shakur

    Hi Shakur,

    Yes you are right... The operating system command should be part of the automated process, I mean if you combine these file loading process (Interface, procedure, etc.) in a package of ODI, then the command BONES to get all the names of files in the FOLDER should be one of the steps in the package of ODI. For this, you can use ODI OS command component.

    Kind regards

    Parag

Maybe you are looking for