Solved batch show all files

June 28, 2012 at 11:46:49
Specs: Windows 7
is there a way to show all files on my computer without the path to them in a batch file?

See More: batch show all files

Report •

#1
June 28, 2012 at 13:02:47
✔ Best Answer
@echo off
for /f "tokens=*" %%a in ('dir /a-d /s /b') do echo %%~nxa

Tony


Report •

#2
June 28, 2012 at 14:01:05
can you make that into something i can copy and paste? :P

Report •

#3
June 28, 2012 at 20:17:09
should be copy pasteable into a batch file

:: mike


Report •

Related Solutions

#4
June 29, 2012 at 10:42:34
ah, k thanx

Report •

#5
June 29, 2012 at 10:51:05
if you want to skip the @echo off and do one line, just use @ in front. :D

:: mike


Report •

Ask Question