Use this function to get the drive component of a file name.
Parameter |
Description |
FullFileName |
Enter a string that contains a fully qualified file name, such as: "d:\mypath\myfile.ext" |
The system returns a string that contains the drive component of that file name.
MYDRIVE = FileDrive("d:\mypath\myfile.ext")
In this example, MYDRIVE would contain:
"d:"
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.