store the last part path of file in variable?
i have path for example :-
i want to store path3 in variable
how i can do it in :-
You can use either parameter expansion or the basename utility.
In Windows (shell script):
for /f %%F in ("%FILE%") do set FILE=%%~nF%%~xF
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago