_FileName

Returns file name with or without extension stripped from path, drive, etc.

#include "String and File String.au3"
_FileName( $sFile [,$bWithExtension = True ] )

parameters

$sFile File with path, drive, etc.
$bWithExtension True = Return with extension, False = Without

return value

string value File name with or without extension

related

examples

_FileName( "c:\documents\mybook.doc" ) ; "mybook.doc"

_FileName( "https://www.mywebsite.com/mybook.pdf" ) ; "mybook.pdf"