Removes the decoration from a path string
#include <WinAPIShPath.au3>
_WinAPI_PathUndecorate ( $sFilePath )
$sFilePath | The path. |
Search PathUndecorate in MSDN Library.
#include <WinAPIShPath.au3>
Local $aPath[4] = ['C:\Path\File[5].txt', 'C:\Path\File[12]', 'C:\Path\File.txt', 'C:\Path\[3].txt']
For $i = 0 To 3
ConsoleWrite(StringFormat('%-22s' & _WinAPI_PathUndecorate($aPath[$i]), $aPath[$i]) & @CRLF)
Next