printing full path of a file in windows from command line

Dir
Displays a list of files and directories within present directory
/S
Displays files in specified directory and all subdirectories.
/B
Uses bare format (no heading information or summary).

Command

E:\prj>dir/S/B *.*
E:\prj\contour2incom.jpg
E:\prj\New Microsoft Office Excel Worksheet.xlsx
E:\prj\New Text Document.txt
Share

You may also like...