by Salvo Cortesiano (Italy) (16 Submissions)
Category: Files/File Controls/Input/Output
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
Example how scan a Directory's and the relevant sub-directorie's, and create the list of file's in a HTML or PDF file that contains the list of folder's (link) with clickable links!
Note: Clickable links not implemented in PDF File!
Inputs
Option Explicit
' .... Init PDF Class
Private myPDF As New clsPDF
' .... Int Count lines
Private totPDFPage As Integer
' .... Limit Line for PDF Page
Private strLine As Integer ' .... Default = 59
' .... STOP the recursive Scan Dir
Private STOP_PRESSED As Boolean
' .... to Strip a Dir
Private Const gstrNULL$ = ""
Private Const gstrSpace$ = " "
Private Const gstrSEP_DIR$ = "\"
Private Const gstrSEP_DIRALT$ = "/"
Private Const gstrSEP_EXT$ = "."
Private Const gstrCOLON$ = ":"
Private Const gstrSwitchPrefix1 = "-"
Private Const gstrSwitchPrefix2 = "/"
Private Const gstrCOMMA$ = ","
' .... Function Shell files
Private Declare Function ShellExecute Lib "Shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
' .... Constant
Private Const SW_SHOWNORMAL = 1
Download Scan all Folders or Dir and put (create) the list into HTML or PDF file (Update) (22 KB)
No comments have been posted about Scan all Folders or Dir and put (create) the list into HTML or PDF file (Update). Why not be the first to post a comment about Scan all Folders or Dir and put (create) the list into HTML or PDF file (Update).