1.

Solve : echo list of path(s) of file(s).?

Answer»

I want to do a BATCH FILE 'pathof.bat' which ECHOS list of path(s) of file(s).
the file 'pathof.bat' consists of only one line which is:

FOR %%F IN (%1) DO echo "%%~ff"

the program echos the correct path for these examples:
pathof anyfile
or
pathof subfolder/anyotherfile
or
pathof *.doc

but this program fails to echo the right path when I do:
pathof subfolder/*
because the batch program echos paths which discards the 'subfolder'
what shell I do?
thanks
jokop



Discussion

No Comment Found