DiskName Function | |
Return the current Windows drive.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION DiskName() AS STRING
public static string DiskName()
Request Example
View SourceReturn Value
Type:
String
The letter of the current drive, without a trailing colon.
Remarks Examples
This example illustrates the relationship between DiskName() and DiskChange() and shows that DiskName() is unaffected by SetDefault():
1FUNCTION DriveTest()
2 ? DiskName()
3 SetDefault("A")
4 ? DiskName()
5 DiskChange("A")
6 ? DiskName()
7 DiskChange("C")
8 ? DiskName()
See Also