I want to generate a file containing the relative paths to all the files in a directory. So far I have this batch file:
@echo off
for /R "C:\TEST" %%f in (*) do echo %%f
Its output is:
C:\TEST\linux.txt
C:\TEST\riddles.txt
C:\TEST\one\limerick.txt
C:\TEST\two\art.txt
C:\TEST\two\computers.txt
I want the output to be:
linux.txt
riddles.txt
one\limerick.txt
two\art.txt
two\computers.txt
Aucun commentaire:
Enregistrer un commentaire