How do I get the filename from this string?
\"C:\\Documents and Settings\\Usuario\\Escritorio\\hello\\test.txt\"
output:
\"
if your path comes as a parameter, just use:
%~nx1 (1 is for the first param and we suppose it's the first one)
%~nx1
echo %~nx1 would return directly test.txt
echo %~nx1