I am running the code,
set /p "filepath=Drag and drop your file >" cls echo Your file name is : %filepath% pause>nul
output i am getting
Your file name is : c:/users/philip/desktop/file.txt
When user drag and drop there file in command prompt and press enter it shows full file path as output..
Your file name is : file.txt
But, what i am expecting is, only the file name with extention..like shown above as output.
Note : File path and File name may varies..