I have the following For loop in a batch file:
for /R c:estsrc %%i IN (*.*) DO (
MOVE %%i C:estdestination
ECHO %%i
exit
)
The result of the ECHO outputs the entire file path Ex: C:FoldernameFilename I need to ECHO out only the Filename.Is there a specific command which would give me the filename ? Thanks !
See Question&Answers more detail:os