Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[BATCH] looking also in subdir's

Status
Not open for further replies.

0318

Programmer
Jan 18, 2004
25
0
0
NL
the following code gets the owner of file in a dir. but i want the code also to look in the subdirs. how?

other thing, thise code gets the owner of a file. but is it also possible to get owner of a map?

here the code:
:: Show owner of specified files; display owner and file name
FOR /F "skip=5 tokens=4* delims= " %%A IN ('DIR/A-D/Q "%OwnedFile%" ^| FIND /V "(s)"') DO ECHO.%%A %%B
 
can be closed.
it was a /S that did it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top