Hello, i just found the dll function _splitpath(), testet it and made a faster _PathSplit() function with the same results as the original.
#include <File.au3>
;~ Global $sFile = "C:\Program Files/Another Dir\AutoIt3\AutoIt3.chm"
;~ Global $sFile = @ScriptFullPath
;~ Global $sFile = "\\127.0.0.1/...