|
Answer» is there any quotes or bracket tricks to do this?
set %%PATH=C:\Users\ set %%XT=.MP3
for /r %%PATH %%I in (*%%XT) do echo %%I~nI
In this case its supposed to GIVE me LIST of mp3 files inside C:\Users\ the idea is that I can easily change it. What it actually think is that %PATH is instead of %I, and %I is mistakeSyntax of the commands seems a BIT crazy, try:
Code: [Select]@echo off cls setlocal
set PATH=c:\users set XT=.mp3
for /r "%PATH%" %%I in (*%XT%) do echo %%~nI PATH is a system variable that is used to define folders where EXECUTABLES are stored. If you use it for something else, all your external commands won't work. Choose another name e.g. MYPATH
|