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

rebo7

New member
Local time
10:47 PM
Messages
4
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:

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7
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 My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate 64 bit
CPU
i7 Intel
Memory
8 GB
Graphics Card(s)
nVidia GeForce
Hard Drives
Seagate; WesternDigital
Antivirus
Panda
Browser
Firefox
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 "[COLOR="Red"]C:\Source\Folder[/COLOR]" "[COLOR="Red"]C:\Destination\Folder[/COLOR]" /create /s
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
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 My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Intel
OS
window 7 32 bit
Pyprohly's suggestion is the best.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate 64 bit
CPU
i7 Intel
Memory
8 GB
Graphics Card(s)
nVidia GeForce
Hard Drives
Seagate; WesternDigital
Antivirus
Panda
Browser
Firefox
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 "[COLOR="Red"]C:\Source\Folder[/COLOR]" "[COLOR="Red"]C:\Destination\Folder[/COLOR]" /create /s

Solution, thanks all.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7
Back
Top