Windows 10: I need to copy all files in a directory including sub-folders except one file

Discus and support I need to copy all files in a directory including sub-folders except one file in Windows 10 Network and Sharing to solve the problem; I am trying to copy all files in a directory including sub-folders to a different to a different disk except one file. The reason I need to omit one... Discussion in 'Windows 10 Network and Sharing' started by Bob theBuilder1, Jul 15, 2020.

  1. I need to copy all files in a directory including sub-folders except one file


    I am trying to copy all files in a directory including sub-folders to a different to a different disk except one file.


    The reason I need to omit one file is because when I try top copy with:-


    robocopy source destination /MIR


    it fails on one particular file....its says file not accessible waiting 30s...and keeps repeating and the copy effectively fails

    :)
     
    Bob theBuilder1, Jul 15, 2020
    #1
  2. temp02 Win User

    Java.nio.file - Copying files

    You can't copy a folder, thats why it generates an exception (you are trying to copy a folder using a copy file function).
    You probably need to list all the files inside that folder and copy one by one
     
    temp02, Jul 15, 2020
    #2
  3. Wozzer Win User
    Java.nio.file - Copying files

    Issue was the above, so thanks temp02.
     
    Wozzer, Jul 15, 2020
    #3
  4. I need to copy all files in a directory including sub-folders except one file

    Script can copy file directory in one spot but not the other

    It's having trouble copying any of the files in the sub directories of frank. All the files directly under frank are properly backed up and the originals are properly edited.

    The script runs using a foreach, looking for any file that ends with a specific extension, in the directory specified. It uses File::find to locate each file. The script first copies the file and adds "orig" to the extension name, for example the file is .origpy instead of .py. The original file is changed from read only to full write permissions. Then it is opened for reading, all is read into memory except the comments. The file is closed. The file is opened for writing. Everything from the file in memory is written to file. The file is closed, and changed back to read only.

    This works great in Linux. I tried it in XP, its fine as well. just something about the directory structure on this server that wont let it work for the sub directories in frank.
     
    Hybrid_theory, Jul 15, 2020
    #4
Thema:

I need to copy all files in a directory including sub-folders except one file

Loading...
  1. I need to copy all files in a directory including sub-folders except one file - Similar Threads - need copy files

  2. problems with one drive. I restored a directory called Pictures all folders and sub...

    in Windows 10 Gaming
    problems with one drive. I restored a directory called Pictures all folders and sub...: 1. My Pictures Folder was was corrupted by a one drive file that I copied to Pictures to save it incase one drive had more problems. 2. I kept getting the error about the one drive file and it wouldn't open the folder pictures so I deleted the directory entry called C...
  3. problems with one drive. I restored a directory called Pictures all folders and sub...

    in Windows 10 Software and Apps
    problems with one drive. I restored a directory called Pictures all folders and sub...: 1. My Pictures Folder was was corrupted by a one drive file that I copied to Pictures to save it incase one drive had more problems. 2. I kept getting the error about the one drive file and it wouldn't open the folder pictures so I deleted the directory entry called C...
  4. problems with one drive. I restored a directory called Pictures all folders and sub...

    in Windows 10 Network and Sharing
    problems with one drive. I restored a directory called Pictures all folders and sub...: 1. My Pictures Folder was was corrupted by a one drive file that I copied to Pictures to save it incase one drive had more problems. 2. I kept getting the error about the one drive file and it wouldn't open the folder pictures so I deleted the directory entry called C...
  5. How to group file by type including files in folder and sub-folder together unfolder

    in Windows 10 Network and Sharing
    How to group file by type including files in folder and sub-folder together unfolder: As my topic I can do it easy from my old labtop also windows 10 by right-click and choose <folder>command that is not <folder> in <sort by> or <group by>. It is a command to make all files in folders and sub-folders re-arrange grouped to file type folder e.g. word folder, pdf...
  6. How to group file by type including files in folder and sub-folder together unfolder

    in Windows 10 Gaming
    How to group file by type including files in folder and sub-folder together unfolder: As my topic I can do it easy from my old labtop also windows 10 by right-click and choose <folder>command that is not <folder> in <sort by> or <group by>. It is a command to make all files in folders and sub-folders re-arrange grouped to file type folder e.g. word folder, pdf...
  7. How to group file by type including files in folder and sub-folder together unfolder

    in Windows 10 Software and Apps
    How to group file by type including files in folder and sub-folder together unfolder: As my topic I can do it easy from my old labtop also windows 10 by right-click and choose <folder>command that is not <folder> in <sort by> or <group by>. It is a command to make all files in folders and sub-folders re-arrange grouped to file type folder e.g. word folder, pdf...
  8. wondershare526 folder and all its sub files

    in Windows 10 Software and Apps
    wondershare526 folder and all its sub files: why i am not allowed to delete the wondershare526 folder in the registry? i have deleted all other wondershare files from the registry. please help clarify, thank you....
  9. Compare directories including files and sub-folders

    in Windows 10 Network and Sharing
    Compare directories including files and sub-folders: Good morning,I wanted to ask how it was possible to check if a folder and its contents are entirely identical. I have this dilemma because I had to transfer an archive of 500 GB from one location to another.Is there already something native to the Windows OS or not?...
  10. File History Not Copying All Files and Directories

    in Windows 10 Installation and Upgrade
    File History Not Copying All Files and Directories: I have windows 10 version 1803, and noticed today that the directory structure set up on my external hard drive by File History is different to the directory structure it is supposed to be copying across, in that there are many sub-directories missing. Some of the missing...