Code: Select all
dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")
' NOTE: Revise this directory to where your favicon.ico file resides
If filesys.FileExists("C:\Users\...\Documents\...\favicon.ico") Then
' NOTE: The first directory is the same as above. The second is the output folder where the MadCap.css, MadCapAll.js, and MadCapBodyEnd.js files reside
filesys.CopyFile "C:\Users\...\Documents\...\favicon.ico", "C:\Users\...\Documents\Project\Output\...\WebHelp\Content\SkinSupport\"
End If
MsgBox "Completed!" & strMsg, vbInformation, "Completed!"