Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

23 Apr 2016   #1
rebo7

Windows 7
 
 
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.


My System SpecsSystem Spec
.
24 Apr 2016   #2
genetics73

Windows 7 Ultimate 64 bit
 
 

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 System SpecsSystem Spec
24 Apr 2016   #3
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

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 System SpecsSystem Spec
.

24 Apr 2016   #4
murky

window 7 32 bit
 
 

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 System SpecsSystem Spec
24 Apr 2016   #5
genetics73

Windows 7 Ultimate 64 bit
 
 

Pyprohly's suggestion is the best.
My System SpecsSystem Spec
25 Apr 2016   #6
rebo7

Windows 7
 
 

Quote   Quote: Originally Posted by Pyprohly View Post
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 System SpecsSystem Spec
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Remove last seven characters from multiple filenames?
Hello. I have a bunch of documents in a data base, all associated with TIFF images, and all having unique DOCIDs. When I batch-print several of the TIFFs to PDFs, the stupid program, instead of just naming them by their DOCIDs, appends a seven-digit serial number to the DOCID, thus: ...
General Discussion
copy/paste multiple files get really slow
Hi guys, Recently,I noticed a significant drop in speed when copy/paste more than one files,as in the chart below.Then I tried fastcopy,and it seems my hard drives work fine. So what is wrong with explorer.exe ? Thanks!
Performance & Maintenance
How do I remove - Copy from multiple files at once?
I just created a huge bunch of copies of files using that 'create copy with all possible properties removed' button. So, is there any way to remove the * - Copy* bit from them all at once? Can't seem to find out how to do so anywhere.
General Discussion
send/receive is stuck after having changed filenames of 2 pst files
By mistake I changed the two pst filenames within windows explorer (Windows7 and Office 2010) instead of just changing the names in the navigation pane of outlook. Now send/receive no longer works. After trying to rechange the names in windows explorer to the previous verion I get the message:...
Microsoft Office
Macrium Reflect creating multiple images, not updating files
My hard drive crashed yesterday, so I tried restoring some of my files on another computer. This is the first time I've tried it, so I never realized it before, but when Macrium backs up my system, it creates about 12 image files instead of just one as I see in all the YouTube "how to" videos. In...
Backup and Restore
How to copy multiple .wma files in different folders to single folder?
I need to 'extract' .wma files from within many different folders to a single, main folder. It looks like this: Main Folder>Artist>Album>Track (.wma) but there are many artists. I want to get all the tracks from within the two subfolders into a single folder. I've searched around online and haven't...
Music, Pictures & Video


Our Sites

Site Links

About Us

Find 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 07:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App