Hi, i am trying to find out the type of storage that the path sJournalDirectory is currently stored on. Such as local or network.
I believe the code below works fine in VB6, but i was wondering how to convert this into VB.Net. I already tried upgrading it, but to no avail.
I believe the code below works fine in VB6, but i was wondering how to convert this into VB.Net. I already tried upgrading it, but to no avail.
Code:
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.GetDrive(fs.GetDriveName(sJournalDirectory)).DriveType <> Fixed Then
......................
End If