|
|
| GetDeviceName$ | ||
| DeviceName$ = GetDeviceName$(Filename$) | ||
| Parameters: Filename$ = The filename & path you wish to grab the device letter from |
||
| Returns: DeviceName$ = The grabbed device name |
||
The GetDeviceName$ function returns the device letter from an absolute filename/path. FACTS: * None Mini Tutorial: This example, shows how to grab the file extension, filename, folder and device name from an absolute file name. An absolute filename, is a filename that contains the device, the folder (directory) and the filename. Something like this "C:\Windows\MyFile.txt"
This example would output something like this.
|
| Related Info: | GetFileExt$ | GetFileName$ | GetFolderName$ : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |