file name with path

22strider

Active Member
Joined
Jun 11, 2007
Messages
311
Hello Friends

What DOS Prompt command should be used for displaying file names with their paths?

For my project I need to list all the files in the main directory and the subdirectories along with their paths.

Thanks for your time

Rajesh
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Displays or sets a search path for executable files.
PATH [[drive:]path[;...]]
PATH ;
Type PATH ; to clear all search-path settings and direct Windows to search
only in the current directory.
Type PATH without parameters to display the current path.
Examples
path=c:\windows\command
This is where a lot of DOS commands are stored in Window 95; if you are not able to do a dos command, type this command in, allowing all commands you type in, such as "deltree", to be loaded from this directory. However, if you have another file in another directory such as C:\DOS it will no longer look there.
 
Upvote 0
If you type tree at the prompt and press [enter] DOS will show all the folders and paths for the current DOS directory.

Bill C
 
Upvote 0
What about if you just want part of the filename in a cell. I have

=Cell("filename")

But if want to capture just part of the name

J
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,189
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top