Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I capture folder directory names of excel files 1

Status
Not open for further replies.

JRUKUSA

IS-IT--Management
Jun 27, 2006
11
US
I have a large volume of excel files stored in a folder, each file name relates to a project, I have a master list of project names. How can I copy the file names from the directory into an excel file such that I can then validate the files names against the project master list in excel.

Thanks in advance of any assistance.

JRUKUSA
 
With some difficulty.

Under Sart, Programs, Accessories, you should have "Command Prompt"

When you select this, you will get a blank screen.

Note the drive and path indicated.

type

dir (full path of directory you want) > list.txt

example:

dir C:\MyDocu~1\xlhelp > xlh.txt

for long folder names use first six characters and ~1

this will give you a text file that you can import into Excel

With litlle bit of practice you will be an expert.



Member AAA - Abolish Abused Abbreviations
 
Thanks for the quick response, I will give it a go, not sure about becoming an expert though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top