Copy only files from folders and subfolders

I need a help.
I have issue with too long destination part, so I want to use some script or command, to copy all files (just files) from all folders and subfolders to one destination (one specified folder).
I don't need folders and subfolders, just files.
I have this issue on Windows 7 Professional.
Best regards

Try this batch file. It will overwrite files with duplicated names.
@echo off
set Source=d:\My Documents
set Dest=d:\My New Folder
xcopy /y "%Source%" "%Dest%\"
for /F "delims=" %%a in ('dir /ad /b /s "%Source%"') do xcopy /y "%%a\*.*"  "%Dest%"

Similar Messages

  • My gmail accounts are connected to Apple Mail. The issue I'm having is in not being able to attach documents from folders and subfolders.  Can anyone direct me to a resolution.

    My gmail accounts are connected to Apple Mail. The issue I'm having is not being able to attach documents from folders and subfolders to an email.  Can anyone provide insight on how to drill down to the documents I need?

    Hello Wilsonneedshelp,
    Thanks for the question. After reviewing your post, it sounds like you need some help adding attachments in Mail. I would recommend that you read this article, it may be able to help the issue.
    Mail (Yosemite): Add attachments
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • How can I transfer/copy my entire iPhoto library from one iMac to another iMac whilst keeping all the folders and subfolders intact?

    We recently purchased a new iMac for our office (8 GB memory, 2.7 processor, version 10.9.2) and we need to copy the iPhoto library from our other iMac (version 10.9.4) onto the new one. The photos are essential for our work and there are around 53,000 of them all organised into folders and subfolders and then the photos are manually ordered within the albums.
    We have tried connecting the computers but when we tried to access the iPhoto library on the new iMac it says that iPhoto is locked and we do not have permission to view it. We updated iPhoto on the old iMac as we thought that might be the problem but the message still appears. We've been advised to use an external hard drive but we're worried that will corrupt the organisation of the library. We have also been told not to do it over AirDrop / the Server because of the sheer quantity of photos.
    Any advice on how to safely do this would be much appreciated.

    No idea exactly what you did
    if you followed the instructions
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then launch iPhoto. That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    then you have exactly the same thin on your new system that you had on the old
    If you do something differently - like import the library instead of simply opening it - then it will not work
    did you dimply drag the iPhoto library from the pictures folder of the old machine to the pictures folder of the new machine and then launch iPhoto on the new machine?
    and to help it is important to use word correctly since that is the only communications method we have - in iPhoto folders do not contain photos - you view photos in events and you can organize them using albums (which view photos) and folders (which hold either albums or other folders - folders never have photos in them) so your description of the problem is not at all clear since it uses folders incorretly
    LN

  • Copying folders and Subfolders with files using Promises WinJS

    Hi,
    I have app written in WinJS.
    I want to copy a particular folder along with its subfolders and their files. I am so far successful with copying folders. Below is the code for the same.
    app.CopyFolder = function (folder, destFolder) {
    var replace = Windows.Storage.CreationCollisionOption.replaceExisting;
    //console.log("create folder: " + folder.name);
    return destFolder.createFolderAsync(folder.name, replace).then(function (newdest) {
    return app.CopySubFolders(folder, newdest);
    app.CopySubFolders=function(folder, destFolder) {
    return folder.getFoldersAsync().then(function (folderlist) {
    return WinJS.Promise.join(folderlist.map(function (folder) {
    return app.CopyFolder(folder, destFolder);
    Now after I have copied all the folders I need to copy their respective files. The problem is I am stuck,I get the files copied but I want to proceed ahead after all the files are written to their respective folders. Below is the code for the same.
    app.copyAllFiles = function (fileList, destStorFolder) {
    console.log('copyFiles Start...');
    var promises = [];
    var fileCopied = 0;
    var collideOpt = Windows.Storage.CreationCollisionOption.replaceExisting;
    return WinJS.Promise.join(fileList.map(function (file) {
    return app.copySingleFile(file, destStorFolder);
    app.copySingleFile = function (fileObject, destFolder) {
    var promises = [];
    var fileCopied = 0;
    var path = destFolder.path + "\\" + fileObject.folderName;
    var collideOpt = Windows.Storage.CreationCollisionOption.replaceExisting;
    return Windows.Storage.StorageFolder.getFolderFromPathAsync(path).done(function (folderObjectOfLocalFolder) {
    return fileObject.fileObject.copyAsync(folderObjectOfLocalFolder, fileObject.fileName, collideOpt).then(function (fileObject) {
    console.log("copied single file:" + fileObject.name);
    The problem is when i run the folder copy code and apply breakpoint for the success call back of 
    CopySubFolders(source,destination).done(/*my breakpoint*/)
    The folders are created.
    But when I try to breakpoint for my copyAllFiles,the files are created only when i pass the success call back.
    Can anyone tell me what am i doing wrong? How can I proceed ahead only when all the files are written successfully.
    Regards,
    Ninad 

    Hi,
    I tried the above solution but what i want is that the action of copying folders and subfolders along with the files should be done with promises and that promise should return only when all folders,sunfolders and their files have been copied. I want to
    do it in this way because I want to perform certain second action only when all things are copied.
    If I do it the as per the link the function runs in the background and my second action proceed aheads and may cause error if it finds some folder or file missing.
    So I came up with following above code,first copy folders then copy. The copy folder works as expected but the files are getting copied only when the file copying code enters the success call back.
    Can you please shed light on my code where I am going wrong.
    Or is it ok to proceed ahead with the solution you mentioned at the link cause I dont want any runtime crashes.
    Regards,
    Ninad

  • How can I copy my Itunes-library from Iphone to my new Mac, as I forgot to copy the files from the old PC, and now it is to late. I only have music on my Iphone.

    How can I copy my Itunes-library from Iphone to my new Mac, as I forgot to copy the files from the old PC, and now it is to late. I only have music on my Iphone4. Thank you.
    gunnarfromhovik

    For iTunes purchases only..
    Connect the iPhone to your Mac, launch iTunes.
    If you haven't done this yet, go to the iTunes menu bar click Store / Authorize This Computer
    Now from the iTunes menu bar again, click File / Transfer Purchases From...

  • My computer has some serious problems, my iphoto only shows thumb size pics when I try to open them, i tried to rebuild my files from folders that had the pics in them. originally all the photos has a large delta with a question mark. also I can't back up

    my computer has some serious problems, my iphoto only shows  only shows thumb size pics when I try to open them, i tried to rebuild my files from folders that had the pics in them. originally all the photos had a large delta with a question mark. also I can't back up the library file because its not there. I went to time machune and tried to find the file but I can't find it or I am looking in the wrong place. I also lost my Idvd file, only have broken chain showing.

    Details please
    What version of iPhoto and of the OS?
    i tried to rebuild my files from folders that had the pics in them.
    Exactly what did you do and how did you do it? this ay be the cause of your issue but without details we can n=ony guess
    my iphoto only shows  only shows thumb size pics when I try to open them,
    where do you see htis? In the iPhoto window? what does "try to pen them" exactly mean?
    originally all the photos had a large delta with a question mark.
    Ok - this usually has a simple solution - do you still have a copy of the library that has this problem?
    also I can't back up the library file because its not there.
    This makes no sense at all - all of your previous statements indicate that you do have an iPhoto library but have some problems with it
    By default your iPHoto library is located in your Pictures folder and is named iPhtoo library - if tha tis not the case the you have moved or renamed it and only you know what you did until you tell us the details
    I went to time machune and tried to find the file but I can't find it or I am looking in the wrong place.
    Again unless you actually share what and how you are doing thing but continue to simply state abstract problems it is no possible to assist you - details on using Time Machine are here  --  http://support.apple.com/kb/HT1427?viewlocale=en_US&locale=en_US   --     and   --    http://pondini.org/TM/FAQ.html   ---
    I also lost my Idvd file, only have broken chain showing.
    This would be better addressed in the iDVD forum - but again unlesss yu share detailed information no one can assist
    LN

  • I am new with iMac and I am trying to copy some file from my external HDD but it does not let me also I can't delete anything from this HDD using the finder. Can somebody help me , please?

    I am new with iMac and I am trying to copy some file from my external HDD that a used with my PC but it does not let me also I can't delete anything from this HDD using the finder. Can somebody help me , please?

    No, unfortunately, when you format a drive, it will erase all the contents. So you will need to find a temporary "storage" place to put the stuff using a PC so you have access to it. Then reformat using Disk Utility (Applications > Utilities). If only using with mac, format Mac OS Extended (Journaled) and use GUID Partition scheme under Partitions/Options. After formatting, you can drag the files back.

  • Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?

    Message title says it: Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?
    I can't find anything in the Knowledge Base that says these two options no longer work or still do.
    I do not have a system capable of running Lion, but I need to know the answer nonetheless.

    Gee, I don't know: "paste attachments mail Lion"? ;-)
    One further question, if I may: in Panther (which is where I've aggregated nearly 7 years of mail), if you copy more than one file in the Finder, switch to Mail, and paste the files into a new message, only the file names paste in. If you copy one file and paste it into a Mail message, you get the file, not just the name. Is that still true, or has that (IMHO) bug been fixed since 10.3.9?

  • I cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?

    i cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?

    to frederic1943
             Its in NTFS Format...and i hav downloaded the file NTFS-3G,but still i dont know wht to do with that.will u pls help me here.

  • Exporting of pictures with folders and subfolders from Aperture

    I was importing folders with subfolders structure to Aperture 3.
    Is possible later export my pictures from structure in Aperture to folders and subfolders with same structure like it was before importing to Aperture?
    Thanks.
    Roman

    I'm assuming you imported using managed files and not referenced files? If referenced (leaving files in place), then your files are in the same folder structure as before.

  • I copied mp3 files from a usb stick and they appear in music folder in finder and on iPhone/ipad with itunes match but not in iTunes?

    I copied mp3 files from a usb stick and they appear in finder in my itunes media/music folder and on my iphone and ipad with itunes match but not in the itunes library?

    Not working.  And it didn't used to be a problem.  iTunes can find the songs with Search Library, but doesn't show in any index (by song, artist or album).  Finding with Search Library offers to play or add to Up Next, but neither actually does anything.  Using File-Add to Library does nothing as well.  The only way I can get the new files to play is to find in Finder and Open with iTunes.
    I suspect Apple is trying to drive me to buy from iTunes store.  Not gonna happen.  If they don't fix this, I'll find another player.
    This worked fine before OSX 10.8.

  • Trying to copy ANY file from my MacBook Pro to an external hard drive spins for 45 minutes then fails. I hate this computer and WISH I never would have wasted my money. Any ideas? WD My Passport 2TB Drive, had to buy a program to make the POS write

    Trying to copy ANY file from my MacBook Pro to an external hard drive spins for 45 minutes then fails. I hate this computer and WISH I never would have wasted my money. Any ideas? WD My Passport 2TB Drive, had to buy a program to make the POS read files. Copies that would take seconds from a Windows based machine never complete. I have to close the transfer or shut off the machine half the time. Worst computer I have EVER owned, crashes non-stop, constantly freezes, and seems like EVERY operation is more complicated with this thing. Literally, my 1997 Compaq was FAR MORE reliable and user friendly.

    This is one of the messages I keep getting; The Finder can’t complete the operation because some data in -- File Whatever -- can’t be read or written.(Error code -36)
    I have copied things to the hard drive in the past, but it has always been incredibly slow, and now just seems to freeze and fail

  • How do I permanently delete music files from itunes AND my  computer (without going to the folder to delete each item)? It's a windows system. I've tried 'reset all dialogue warnings' as I've been told to do but no luck. Files are still in Itunes folders.

    How do I permanently delete music files from itunes AND my  computer (without going to the folder to delete each item)? It's a windows system. I've tried 'reset all dialogue warnings' as I've been told to do but no luck. Files are still in Itunes folders. I would really appreciate help!

    Solved! Music was in Itunes folder but not in Media folder within that. It doesn't seem like a very user friendly system so far!

  • When copying raw files from Extreme IV card to hardrive, finder copies a few files then exits task and wipes the card clean of all images.

    When copying raw files from Extreme IV card to hardrive, finder copies a few files then exits task and wipes the card clean of all images.  Have tried new card and card-reader to no avail.  Have done this many times on other macs with no problems.
    Can edit files off the card, in CameraRaw, prior to 'copying' them, ie can 'save as' to the hard drive, so files seem okay on card, before I try to copy them using copy and paste.
    Running OS 10.8.3 on a new macbook pro.

    Rita,
    The process for determining what is causing the files to be corrupt can be a tedious one depending on the following:
    1. Can you review the images on your camera's LCD screen without problems? If not then the problem is most probably either a corrupted/faulty memory card or a faulty camera. If this is the case then your best bet at recovery (of sorts) is to use a program such as BrezzeBrowser from BreezeSys to extract the embedded jpeg versions of the corrupted RAW files from within each RAW file. Chances are, you won't manage to actually repair the corrupted RAW file but the jpegs are better than nothing.
    2. If the images review ok on your camera but are corrupted when viewing on your computer and there seems to be no other problem with other files on your computer then it may be either a faulty card reader or usb/firewire cable between the card reader and the computer that is the culprit. Try the card reader with a different cable and also try a different card reader to determine the cause of the corruption.
    3. If your symptoms are that you get different files corrupting over time when viewing them on your computer then the problem may be any one of either failing RAM memory, hard disk, hard disk controller or IDE/SATA hard disk cables. This is where the troubleshooting can be pretty tedious testing then eliminating each item from the list of suspicious pieces of hardware. Try the card and card reader on an altogether different computer to see if the files transfer correctly to that computer. If so then the problem lies with your computer hardware. If you haven't already done so at this stage, backup all your important data immediately (hopefully you keep backs anyway).
    Hope this helps.

  • HT3231 I tried to migrate information from MacBook Air to ...Pro and it seemed to have taken files from folders on desktop as none exist on Air now.  As to where these files are, I don't know.  It has also taken my pictures from iPhoto to unknown destinat

    I tried to migrate information from MacBook Air to ...Pro and it seemed to have taken files from folders on desktop as none exist on Air now.  As to where these files are, I don't know.  It has also taken my pictures from iPhoto to unknown destination. ??

    If you used migration assistant then it probably created a new Login user and placed the migrated files under it.
    Regards,
    Captfred

Maybe you are looking for

  • 160 counters in FPGA. Use arrays or 160 loops?

    I need to program a 7811R FPGA module to give me 160, 16 bit counters. Originally I made 4 loops (one for each connector) and put the counts from each loop in a 40 element array - mostly to make it easier to program. I'm wondering if that's a bad ide

  • Error: Attribute set for field_name in view object VO_instance failed

    While I try to add a new row in a table using a VO created on two EOs, it comes back with error message 'Attribute set for <field_name> in view object <VO_instance> failed' for each field I enter the data. Please suggest me if I am missing something

  • Why can't I make calls from my iPhone?

    For quite some time my calls have been increasingly failing when calling certain people. I keep getting forwarded to voicemail after 1.5 rings or it will ring like normal on my end but the person will never have a missed call. It's become extremely f

  • Multisession and multiuser login issue...

    Hi , I am having below database objects like below. CREATE TABLE test_table_1 (id      NUMBER, col1 VARCHAR2(20 BYTE) CREATE OR REPLACE PACKAGE pack1 IS TYPE global_cursor IS REF CURSOR; END; CREATE OR REPLACE PROCEDURE test_proc (out_cursor OUT pack

  • IPhone 3G STILL Crashes with iOS 4.0.x and 4.1 update

    I'm still having performance issues. My iPhone 3G boot up time has increase but it still crashes every time I tried to use it, regardless if I use it for gaming, being on the phone, or anything. The battery meters keeps on showing that my battery is