I want to get the filename from a filepath.
My problem is, that I found many solutions for handling it with input via parameters.
But I want to use a userinput instead of a parameter.
The soultion for parameters is:
%~nxI //I could be number for the parameter count
My script actually looks like this:
@echo off
set /p path=Film:
echo %path2%
pause
Now I want to get the filename + extension from %path% and write it to %path2%.
Could anyone help me please?
…and for Pete’s sake do not prompt the user to set the PATH variable! use some other variable name!