CurDrive Function | |
Return the current Windows drive.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION CurDrive() AS STRING
public static string CurDrive()
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 CurDrive() and DiskChange() and shows that CurDrive() is unaffected by SetDefault():
1FUNCTION DriveTest()
2 ? CurDrive()
3 SetDefault("A")
4 ? CurDrive()
5 DiskChange("A")
6 ? CurDrive()
7 DiskChange("C")
8 ? CurDrive()
See Also