How to: Copy multiple filenames & extensions, creating empty files


  1. Posts : 4
    Windows 7
       #1

    How to: Copy multiple filenames & extensions, creating empty files


    Windows 7 OS
    Hello to the forum and the tech wizards here, I would really apprechiate some assistance.
    Copy and rename programs have not worked (or can't see how) and too many files for multiple copy and creating.

    Problem:
    Copy multiple filenames and their extensions to create empty multiple files of the same name.
    Last edited by rebo7; 15 May 2016 at 16:59.
      My Computer


  2. Posts : 50
    Windows 7 Ultimate 64 bit
       #2

    The problem, as I understand it:
    You are organizing hundreds of files in several dozen folders and need to first create a list or map of all the files. You only want the names of the files, not anything else.
    To do the job from the regular Windows environment, click Start > All Programs > Accessories > Command Prompt and enter these commands:

    cd /d "path "
    dir /b /s >"file
    "

    where:

    path = full path to the folder
    file = name of file to write

    For example, to create a list of the files in My Documents and write it to a file named My Documents.txt :

    cd /d "C:\Documents and Settings(or similar)\User\My Documents"
    dir /b /s >"My Documents.txt"


    The /s parameter lists files in the selected folder and all subfolders. Omit it if you just want files in the selected folder.

    An alternative: download, install and use CopyFileNames from Copy filenames to the Windows clipboard with CopyFilenames v3.1
      My Computer


  3. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #3

    Hi Rebo07,

    With the help of a builtin command-line tool, your task becomes especially trivial. Robocopy has a switch fit for your purpose.

    The following command line will copy a directory structure and fill it with zero-length files. Substitute the red text.
    Code:
    robocopy "C:\Source\Folder" "C:\Destination\Folder" /create /s
      My Computer


  4. Posts : 36
    window 7 32 bit
       #4

    I do not understand what you are trying to do.
    What do you want to do with
    example1.rar (0mb)
    after it is created ? If it is zero bytes it will not open or be of any use to you.
      My Computer


  5. Posts : 50
    Windows 7 Ultimate 64 bit
       #5

    Pyprohly's suggestion is the best.
      My Computer


  6. Posts : 4
    Windows 7
    Thread Starter
       #6

    Pyprohly said:
    Hi Rebo07,

    With the help of a builtin command-line tool, your task becomes especially trivial. Robocopy has a switch fit for your purpose.

    The following command line will copy a directory structure and fill it with zero-length files. Substitute the red text.
    Code:
    robocopy "C:\Source\Folder" "C:\Destination\Folder" /create /s
    Solution, thanks all.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:03.
Find Us