Returns file name with or without extension stripped from path, drive, etc.
#include "String and File String.au3" _FileName( $sFile [,$bWithExtension = True ] ) |
$sFile | File with path, drive, etc. |
$bWithExtension | True = Return with extension, False = Without |
string value | File name with or without extension |
_FileName( "c:\documents\mybook.doc" ) ; "mybook.doc"
_FileName( "https://www.mywebsite.com/mybook.pdf" ) ; "mybook.pdf"