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 Email and Password
5 years ago