Want to copy the file name quickly in Windows. I always use rename, copy , but feel it is quite slow. Any better way?
You can get a free context menu utility, rightfully named "Copy File Name Utility", that will add that option to files:
Compatible with XP, Vista, 7 (32 and 64-bit editions). Just 11kb.
I know it's an old question but I was also looking for a way to do this and if you select the files you need and then press shift + right click -> 'copy as path', you can get the complete file paths without using the command prompt. Then you can use a quick find and replace to remove the parts of the paths that you don't need. It takes about five seconds.
If you are just trying to copy the files names into the clipboard try the following -
- Click Start, click Run, type cmd, and then click OK.
- change to the appropriate directory using the
- Using the mouse, highlight the file names you want to copy.
- Press the right mouse button - this copies the selected text onto the clipboard.
You may need to enable quick edit mode, follow the instructions here.
Try clicking on a the file and then clicking on it after a short pause it will get into rename mode and then you can copy the name of the file .
Or you can drag the file to run menu and it will show the file name (but along with the file path) . Or you can do the following if you have too many file names to copy
Launch command prompt
Navigate to the folder you want file names from
Type out the following :
This will create a txt file with list of all the files/folders in your folder in you D drive.
To get a complete folder of file names;
- Use File Explorer and navigate to the folder you want to list files from.
- Use SHIFT +
Right Clickto show the expanded context menu.
Open command window here
- At command prompt enter
dir >> files.txtwhich creates
files.txtin the folder with all the file details listed.
- Open and edit with your preferred text editor.