Hello
i try to do convert the following code into c# but i don't succeed
because the c# function DriveInfo do not seem to support UNC path...
am i wrong ?
' VB Script Document
Dim fso : Set fso = CreateObject("S cripting.FileSy stemObject")
totalSize=Int(f so.GetDrive("\\ server\shared$" ).TotalSize)
freeSpace=Int(f so.GetDrive("\\ server\shared$" ).FreeSpace)
usedSpace=total Size-freeSpace
percentage=used Space/totalSize*100
MsgBox percentage
could you convert it for me ?
bye
Nico
Comment