Directory Listing Script

bradjedis
4StarLounger
Posts: 536
Joined: 30 Mar 2010, 18:49
Location: United States

Directory Listing Script

Post by bradjedis »

Greetings,

Years ago I ran across this VB Script. Although it works well enough, I would like it to add a blank line after the End of each Folder. The script will cycle thru a folder, it's files and any sub-folders. After the processing of a folder, and listing any files, after the last file, insert a blank row.

download the attachment, rename to remove the ".txt"
mydiskcat12.vbs.txt
Any assistance would be great!

Brad
You do not have the required permissions to view the files attached to this post.

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Directory Listing Script

Post by StuartR »

Try adding the line
ObjFile.WriteLine ""
in between the two Next statements near the end of your script
StuartR


bradjedis
4StarLounger
Posts: 536
Joined: 30 Mar 2010, 18:49
Location: United States

Re: Directory Listing Script

Post by bradjedis »

StuartR,

Thanks for the suggestion. I get an error
Screenshot_4.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Directory Listing Script

Post by HansV »

Try this version.
mydiskcat12.vbs.txt
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Directory Listing Script

Post by StuartR »

bradjedis wrote:
15 Mar 2021, 21:13
StuartR,

Thanks for the suggestion. I get an error

Screenshot_4.jpg
Sorry, my ObjFile.WriteLine "" should have been ObjLogFile.WriteLine ""
StuartR


bradjedis
4StarLounger
Posts: 536
Joined: 30 Mar 2010, 18:49
Location: United States

Re: Directory Listing Script

Post by bradjedis »

Hans, Thanks that worked great

StuartR,, Thanks no worries