Windows 10: How to ind files in subdirectories and copy to a specific root directory automatically?

Discus and support How to ind files in subdirectories and copy to a specific root directory automatically? in Windows 10 Software and Apps to solve the problem; Hello all and Happy New Year in advance,I have a root folder containing over a hundred folders, that have at least one level sub-folders themselves.... Discussion in 'Windows 10 Software and Apps' started by CricriYR, Dec 30, 2024.

  1. CricriYR Win User

    How to ind files in subdirectories and copy to a specific root directory automatically?


    Hello all and Happy New Year in advance,I have a root folder containing over a hundred folders, that have at least one level sub-folders themselves. Most of the folders contain a file of FILE type no extension somewhere in their structure, generally in a sub-folder.I want to scan all the whole directory structure, and copy all the files of type FILE to the root directory.How to I automate this in Windows, hopefully using Microsoft tools rather than third-party tools, although I will use the latter if easier to set-up as I will need to repeat this kind of operation many times in future.Thank

    :)
     
    CricriYR, Dec 30, 2024
    #1
  2. Kreij Win User

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

    As the domain user (I'm assuming you are not Fred) can you do to a subdirectory of Fred and just do a copy and paste of a file out of the directory?
     
    Kreij, Dec 30, 2024
    #2
  3. JE0005 Win User
    does file history include subdirectories?

    Does Win 10 File History backup feature automatically include all subdirectories of folders that are added to the include list?

    That is, if I specify c:\users\username, will all subdirectories under c:\users\username automatically get backed up? Or do I have to manually add each subdirectory?
     
    JE0005, Dec 30, 2024
    #3
  4. How to ind files in subdirectories and copy to a specific root directory automatically?

    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, Dec 30, 2024
    #4
Thema:

How to ind files in subdirectories and copy to a specific root directory automatically?

Loading...
  1. How to ind files in subdirectories and copy to a specific root directory automatically? - Similar Threads - ind files subdirectories

  2. How to find files in sub-directories and copy to a specific root directory automatically?

    in Windows 10 Gaming
    How to find files in sub-directories and copy to a specific root directory automatically?: Hello all and Happy New Year in advance,I have a root folder containing over a hundred folders, that have at least one level sub-folders themselves. Most of the folders contain a file of FILE type no extension somewhere in their structure, generally in a sub-folder.I want to...
  3. How to find files in sub-directories and copy to a specific root directory automatically?

    in Windows 10 Software and Apps
    How to find files in sub-directories and copy to a specific root directory automatically?: Hello all and Happy New Year in advance,I have a root folder containing over a hundred folders, that have at least one level sub-folders themselves. Most of the folders contain a file of FILE type no extension somewhere in their structure, generally in a sub-folder.I want to...
  4. How to ind files in subdirectories and copy to a specific root directory automatically?

    in Windows 10 Gaming
    How to ind files in subdirectories and copy to a specific root directory automatically?: Hello all and Happy New Year in advance,I have a root folder containing over a hundred folders, that have at least one level sub-folders themselves. Most of the folders contain a file of FILE type no extension somewhere in their structure, generally in a sub-folder.I want to...
  5. Persistent generation of Found.xxx files in root directory

    in Windows 10 Support
    Persistent generation of Found.xxx files in root directory: Winver 1903 Hi, I have a relatively new computer system with a Crucial MX500 SSD (1 TB) The problem that I am having is that folders that are named Found.xxx (where xxx is numerically sequenced) and are constantly created in the root drive of C The folders are always...
  6. How to delete Found.000 directory and subdirectories?

    in Windows 10 Support
    How to delete Found.000 directory and subdirectories?: I'm facing a rather strange situation. I have a directory on an external hard disk named found.000. Its attributes are Hidden and System. Inside it there is another directory named dir_00000000.chk. That one also has Hidden and System attributes. Now it's worth noting that...
  7. Directories and subdirectories still appear on File Explorer even when ...

    in Windows 10 Network and Sharing
    Directories and subdirectories still appear on File Explorer even when ...: Directories and subdirectories still appear on File Explorer even when I have successfully deleted its contents (in the temporary files in setup-systems-storage) I just wonder why the folders are still there! Well, I’m just cleanings up and am curious if I can remove the...
  8. Lost files when moving directory with subdirectories

    in Windows 10 Support
    Lost files when moving directory with subdirectories: I have just witnessed the strangest behavior on my windows 10 notebook. It is the second time it has happened. The first time I was sure that I did something but this time I am sure of what I did because I was very careful. For brevity I have substituted logical names. Thank...
  9. Quixxxx.tmp directories on root

    in Windows 10 Support
    Quixxxx.tmp directories on root: I have all these directories starting with Qui...tmp on one of my laptops. about 20-30 of them, all empty. I get nothing via google. Anyone ever seen this? 67218
  10. Can't save file in C:\ root directory

    in Windows 10 Support
    Can't save file in C:\ root directory: I want to save files in my C:\ root directory of my boot drive and get an error that "Required privilege is not held by the client". I am the sole user/administrator of this system. I went into C:, properties, security, and enabled permissions for everything and everyone....