View Full Version : Script which makes a list of PDF files
asset
06-03-2013, 06:33 AM
Hi!
I have a folder with PDF files and want to make a file which contains a list
of all PDF files.
I'm thinking about VBS script.
Could someone help?
Thanks!
fumei
06-03-2013, 10:49 AM
Try:
Sub ListPDF()
Dim file
Dim path As String
path = "C:\New folder\"
file = Dir(path & "*.pdf")
Do While file <> ""
Selection.TypeText path & file & vbCrLf
file = Dir()
Loop
End Su
The above writes a separate paragraph for each PDF found in C:\New folder.
asset
06-04-2013, 04:38 AM
Hi Fumei,
Thanks for your answer!
fumei
06-04-2013, 04:55 PM
If you are OK with it, please marked the thread as Solved.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.