|
|
|
Click here to copy the following block |
Function MakeFileName(Drive As String, Path As String, BaseName As String, _ Optional Extension As String)
MakeFileName = Drive & IIf(Right$(Drive, 1) <> ":", ":", "") MakeFileName = MakeFileName & Path & IIf(Right$(Path, 1) <> "\", "\", "") If Len(Extension) = 0 Then MakeFileName = MakeFileName & BaseName ElseIf InStr(BaseName, ".") = 0 Then MakeFileName = MakeFileName & BaseName & "." & Extension Else Dim i As Long For i = Len(BaseName) To 1 Step -1 If Mid$(BaseName, i, 1) = "." Then MakeFileName = MakeFileName & Left$(BaseName, i) & Extension Exit For End If Next End If End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|