How do I copy all file names in a folder to notepad?
I often want to copy all the file names with full path and extensions in a folder to a ".txt" document but can't. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I would rather have a simple batch.bat or .exe file that works.
windows
add a comment |
I often want to copy all the file names with full path and extensions in a folder to a ".txt" document but can't. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I would rather have a simple batch.bat or .exe file that works.
windows
add a comment |
I often want to copy all the file names with full path and extensions in a folder to a ".txt" document but can't. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I would rather have a simple batch.bat or .exe file that works.
windows
I often want to copy all the file names with full path and extensions in a folder to a ".txt" document but can't. Is there an easy way to do this? How? Is there a simple batch file that will do it? Freeware might work, but I would rather have a simple batch.bat or .exe file that works.
windows
windows
edited Aug 11 '14 at 19:26
An Dorfer
1,2032713
1,2032713
asked Oct 20 '12 at 13:21
repanarepana
106113
106113
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
Open up a command prompt
Navigate to the directory you want with
cd "Documents"
dir /B > filelist.txt
Open filelist.txt or move it where you want.
My output:
C:UsersTomDocuments>dir /B
all.css
BFBC2
Disc Images
Fax
Fiddler2
gegl-0.0
Network Monitor 3
Scanned Documents
SQL Server Management Studio
SweetScape
Virtual Machines
Visual Studio 2010
You can limit to just files with dir /B /A-D
. /AD meaning only directories, /A-D means not directories.
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
add a comment |
Which version of Windows? In Windows 7 at least (ought to work in Win8 as well), you can select the files, press Shift and right-click. Now you'll see a new Copy as path option that you can click on, and then paste the paths in Notepad.
3
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
add a comment |
Open a Notepad and type the below lines.
dir /a /b /-p /o:gen >names.txt
Save this file with .bat as extension.
Move the .bat file to which folder you want to get list of file names.
Double click the bat file.
One file named names.txt will be created, which has list of file names.
add a comment |
Select all files in folder, Shift+Right-Click, copy as path, paste to doc/excel/text/email
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
3
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
add a comment |
(for %F in (*) do @echo %~dpnxF)|sort >filelist.txt
will produce sorted list of files (with full paths) in current directory in file called filelist.txt
. Change *
to whatever directorypath pattern you wish. Be aware that it will include filelist.txt
itself if you enumerate current directory so it's better to run from parent dir instead.
add a comment |
Download xplorer² lite, select all files in a folder and copy all the file names with full path and extensions to clipboard, notepad, Word or Excel using shortcut Alt+C or click in Edit and then Copy names. It works very nice and easy.
add a comment |
protected by Community♦ Dec 31 '18 at 16:28
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Open up a command prompt
Navigate to the directory you want with
cd "Documents"
dir /B > filelist.txt
Open filelist.txt or move it where you want.
My output:
C:UsersTomDocuments>dir /B
all.css
BFBC2
Disc Images
Fax
Fiddler2
gegl-0.0
Network Monitor 3
Scanned Documents
SQL Server Management Studio
SweetScape
Virtual Machines
Visual Studio 2010
You can limit to just files with dir /B /A-D
. /AD meaning only directories, /A-D means not directories.
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
add a comment |
Open up a command prompt
Navigate to the directory you want with
cd "Documents"
dir /B > filelist.txt
Open filelist.txt or move it where you want.
My output:
C:UsersTomDocuments>dir /B
all.css
BFBC2
Disc Images
Fax
Fiddler2
gegl-0.0
Network Monitor 3
Scanned Documents
SQL Server Management Studio
SweetScape
Virtual Machines
Visual Studio 2010
You can limit to just files with dir /B /A-D
. /AD meaning only directories, /A-D means not directories.
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
add a comment |
Open up a command prompt
Navigate to the directory you want with
cd "Documents"
dir /B > filelist.txt
Open filelist.txt or move it where you want.
My output:
C:UsersTomDocuments>dir /B
all.css
BFBC2
Disc Images
Fax
Fiddler2
gegl-0.0
Network Monitor 3
Scanned Documents
SQL Server Management Studio
SweetScape
Virtual Machines
Visual Studio 2010
You can limit to just files with dir /B /A-D
. /AD meaning only directories, /A-D means not directories.
Open up a command prompt
Navigate to the directory you want with
cd "Documents"
dir /B > filelist.txt
Open filelist.txt or move it where you want.
My output:
C:UsersTomDocuments>dir /B
all.css
BFBC2
Disc Images
Fax
Fiddler2
gegl-0.0
Network Monitor 3
Scanned Documents
SQL Server Management Studio
SweetScape
Virtual Machines
Visual Studio 2010
You can limit to just files with dir /B /A-D
. /AD meaning only directories, /A-D means not directories.
answered Oct 20 '12 at 13:32
Tom RitterTom Ritter
866922
866922
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
add a comment |
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
Great answer. Is it possible to cover subfolders as well I mean recursively?
– RIT
yesterday
add a comment |
Which version of Windows? In Windows 7 at least (ought to work in Win8 as well), you can select the files, press Shift and right-click. Now you'll see a new Copy as path option that you can click on, and then paste the paths in Notepad.
3
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
add a comment |
Which version of Windows? In Windows 7 at least (ought to work in Win8 as well), you can select the files, press Shift and right-click. Now you'll see a new Copy as path option that you can click on, and then paste the paths in Notepad.
3
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
add a comment |
Which version of Windows? In Windows 7 at least (ought to work in Win8 as well), you can select the files, press Shift and right-click. Now you'll see a new Copy as path option that you can click on, and then paste the paths in Notepad.
Which version of Windows? In Windows 7 at least (ought to work in Win8 as well), you can select the files, press Shift and right-click. Now you'll see a new Copy as path option that you can click on, and then paste the paths in Notepad.
answered Oct 20 '12 at 20:55
KaranKaran
49.2k1489160
49.2k1489160
3
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
add a comment |
3
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
3
3
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
thats just a lot easier than @tom and yeas works in win 8.1
– Jon
Jul 28 '14 at 14:21
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
Great solution works on windows7 tooo. Save my lots of time
– MaxPayne
Aug 14 '15 at 6:31
add a comment |
Open a Notepad and type the below lines.
dir /a /b /-p /o:gen >names.txt
Save this file with .bat as extension.
Move the .bat file to which folder you want to get list of file names.
Double click the bat file.
One file named names.txt will be created, which has list of file names.
add a comment |
Open a Notepad and type the below lines.
dir /a /b /-p /o:gen >names.txt
Save this file with .bat as extension.
Move the .bat file to which folder you want to get list of file names.
Double click the bat file.
One file named names.txt will be created, which has list of file names.
add a comment |
Open a Notepad and type the below lines.
dir /a /b /-p /o:gen >names.txt
Save this file with .bat as extension.
Move the .bat file to which folder you want to get list of file names.
Double click the bat file.
One file named names.txt will be created, which has list of file names.
Open a Notepad and type the below lines.
dir /a /b /-p /o:gen >names.txt
Save this file with .bat as extension.
Move the .bat file to which folder you want to get list of file names.
Double click the bat file.
One file named names.txt will be created, which has list of file names.
answered Jun 2 '15 at 9:09
SathyaSathya
5111
5111
add a comment |
add a comment |
Select all files in folder, Shift+Right-Click, copy as path, paste to doc/excel/text/email
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
3
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
add a comment |
Select all files in folder, Shift+Right-Click, copy as path, paste to doc/excel/text/email
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
3
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
add a comment |
Select all files in folder, Shift+Right-Click, copy as path, paste to doc/excel/text/email
Select all files in folder, Shift+Right-Click, copy as path, paste to doc/excel/text/email
edited Feb 20 '16 at 10:37
DavidPostill♦
105k25227261
105k25227261
answered Feb 19 '16 at 17:47
I Lernt ThisI Lernt This
211
211
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
3
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
add a comment |
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
3
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
"copy as path" isn't a default option in Windows. You have to provide in specific detail how to add that option. This answer is incomplete.
– Ramhound
Feb 19 '16 at 18:37
3
3
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
@Ramhound It is, actually, but it only appears if you hold Shift while right-clicking. This is actually a reasonable answer. I'm voting Looks OK. - From Review
– Ben N
Feb 20 '16 at 0:36
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
This is a correct answer, but Karan already gave it, 3½ years before.
– Scott
Aug 31 '18 at 0:29
add a comment |
(for %F in (*) do @echo %~dpnxF)|sort >filelist.txt
will produce sorted list of files (with full paths) in current directory in file called filelist.txt
. Change *
to whatever directorypath pattern you wish. Be aware that it will include filelist.txt
itself if you enumerate current directory so it's better to run from parent dir instead.
add a comment |
(for %F in (*) do @echo %~dpnxF)|sort >filelist.txt
will produce sorted list of files (with full paths) in current directory in file called filelist.txt
. Change *
to whatever directorypath pattern you wish. Be aware that it will include filelist.txt
itself if you enumerate current directory so it's better to run from parent dir instead.
add a comment |
(for %F in (*) do @echo %~dpnxF)|sort >filelist.txt
will produce sorted list of files (with full paths) in current directory in file called filelist.txt
. Change *
to whatever directorypath pattern you wish. Be aware that it will include filelist.txt
itself if you enumerate current directory so it's better to run from parent dir instead.
(for %F in (*) do @echo %~dpnxF)|sort >filelist.txt
will produce sorted list of files (with full paths) in current directory in file called filelist.txt
. Change *
to whatever directorypath pattern you wish. Be aware that it will include filelist.txt
itself if you enumerate current directory so it's better to run from parent dir instead.
answered Oct 20 '12 at 13:42
wmzwmz
5,70211127
5,70211127
add a comment |
add a comment |
Download xplorer² lite, select all files in a folder and copy all the file names with full path and extensions to clipboard, notepad, Word or Excel using shortcut Alt+C or click in Edit and then Copy names. It works very nice and easy.
add a comment |
Download xplorer² lite, select all files in a folder and copy all the file names with full path and extensions to clipboard, notepad, Word or Excel using shortcut Alt+C or click in Edit and then Copy names. It works very nice and easy.
add a comment |
Download xplorer² lite, select all files in a folder and copy all the file names with full path and extensions to clipboard, notepad, Word or Excel using shortcut Alt+C or click in Edit and then Copy names. It works very nice and easy.
Download xplorer² lite, select all files in a folder and copy all the file names with full path and extensions to clipboard, notepad, Word or Excel using shortcut Alt+C or click in Edit and then Copy names. It works very nice and easy.
answered Jun 5 '15 at 13:06
dankimdankim
1
1
add a comment |
add a comment |
protected by Community♦ Dec 31 '18 at 16:28
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?