Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO off
- SET v1=%%~dpF
- SET v2=%%~nxF
- (for /r %%F in (*) do @echo "%v1%","%v2%"
- pause
- Example Output :
- - D:/newfolder1/tester.doc | 18/02/2016 01:30:00 | 16/02/2016 02:13:12 | Nickolas
- - D:/newfolder2/tester2.doc | 11/03/2016 01:30:00 | 12/02/2016 02:13:12 | Marx Timberlack
- - D:/newfolder3/tester3.doc | 18/02/2016 01:30:00 | 16/02/2016 02:13:12 | Administrators
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement