Thread: OT Batch file
View Single Post
  #2  
Old January 4th 18, 05:24 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default OT Batch file

Seymore,

How do I modify this to not show the path?


You could try to remove the '/b', but I don't think you will like the result
.... (too much crap besides the filenames). In short, you don't.

But its possible without even using 'dir'. Like this:

@echo off
echo.$$$.txt
for /r o:\ %%a in (*) do echo %%~nxa $$$.txt
sort $$$.txt o:\dl\misc\List\drive.txt
del $$$.txt

Hope that helps.

Regards,
Rudy Wieser


Ads