scripting@wanadoo.nl




GetDiskName()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
3 July 2002 GetDiskName()
AuthorLee Wilmott
Action Returns the volume name of the selected partition.
SyntaxGetDiskName ("drive") 
Parameters
  • "drive" (Required / String) The drive letter whose volume name you want returned. 
  • RemarksAn additional function that complements the native GETDISKSPACE() function. 
    ReturnsThe volume name of the specified partition. 
    DependenciesNone. 
    Examples
    $VolumeName = GetDiskName("C:")
    
    $VolumeName = GetDiskName("C")
    
     
    Source
    FUNCTION GetDiskName ($drive)
     DIM $fso, $fsodrive
     $fso = CreateObject("Scripting.FileSystemObject")
     $fsodrive = $fso.drives($drive)
     $getdiskname = $fsodrive.volumename
     $fso = "Nothing"
    ENDFUNCTION ; - GetDiskName -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter