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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a file name from the sub-dir the file resides in

Status
Not open for further replies.

Blakeseven

Technical User
Nov 17, 2002
21
US
I need to create a text file for each folder name in a drive. The script needs to work thru the drive dir by dir and place a txt file in a spcific dir named the name for the folder being processed. Can this be done ?
 
You need to use the filesystemobject to read a folder and to write a text file. This action must be performed in a recursive loop to loop through every folder on your drive.

BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top