Need help.it's only small mistake but cant fix it

June 5, 2012 at 23:45:52
Specs: Windows Vista
rem get dir folder and file

@echo on

for /f %%f in (.\ServerName\Server.txt) do DIR/W/s "E:\DATA\Web\Logfiles" > "E:\Data\Trend\Trend IIS Maintenance\Log\FileFolderLogs\%%f.log"


See More: Need help.its only small mistake but cant fix it

Report •

#1
June 11, 2012 at 20:55:40
try "tokens=*". I figure the problem is to do with spaces (AAAHG) in filenames.
for /f "tokens=1* " %%f ,,,,
Longfilenames SUCK. good luck

Report •
Related Solutions


Ask Question