|
of_getdrivetype
|
|
Full name
|
pfc_n_cst_filesrvhpux.of_getdrivetype
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getdrivetype(string)
|
Name
|
Datatype
|
ls_drive
|
string
|
public function integer of_getdrivetype (string as_drive);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_GetDriveType
// Arguments: as_Drive The letter of the drive to be checked.
// Returns: Integer
// The type of the drive:
// 2 - floppy drive,
// 3 - hard drive,
// 4 - network drive,
// 5 - cdrom drive,
// 6 - ramdisk,
// any other value is the result of an error.
// Description: Determine the type of a drive.
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 Sybase, Inc. and its subsidiaries. All rights reserved. Any distribution of the
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
string ls_drive
ls_drive = Upper(left(as_drive,1)) + ":\"
Return GetDriveTypeA(ls_drive)
end function