Drive Name by using FSO
We can get the name of the drive in which the file reside by using drive property.
FilePath=Server.MapPath("text.txt") ' located in the same director
Set FSOobj = Server.CreateObject("Scripting.FileSystemObject")
Response.Write " Drive Name = " & details.Drive
Set FSOobj = Nothing
This article is written by plus2net.com team.
Be the first to post comment on this article :