Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
phila
498 Views, 6 Replies

Folder creation

Why does this create a folder with an added character?

 

 

It adds a "T" or a "C" depending on the name of folder the the drawing is in.  In this case, the folder named T-II creates "TPDF" and Commom creates "CPDF"

 

oFolder = ThisDoc.Path (InStrRev(ThisDoc.Path,"\")) & "PDF"

 

'Check for the PDF folder and create it if it does not exist

If Not System.IO.Directory.Exists(oFolder) Then

System.IO.Directory.CreateDirectory(oFolder)

End If

 

What is the correct way to do this?