ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] command FOR /F "TOKENS=*" %%%V in ... related thing   [Help!]

By: Hartmut Schneider     Germany  
Date: Dec 05,2016 at 07:34
In Response to: [Help!] command FOR /F "TOKENS=*" %%%V in ... related thing (Ryan)

> FOR /F "TOKENS=*" %%%V IN ('DIR ^"*.MP3^" ^"*.OGG^" /A-D /B') DO ()
> could you give me a few words if there is a potential problem for BB=?

Why did you put double quotes around *.MP3 and *.OGG ?
I see no advantage for this in the DIR command.

Another point is the usage of '^'.
I think you need it only to quote meta commands such as | or >.
Without ^, the command shell would interpret them as pipe command or output redirection at the FOR command level,
which is not wanted inside the parentheses.

Hartmut

834 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 64 users online (0 registered, 64 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 3:40 pm UTC  |  Hits:62,371,767  (24,164 Today )
RSS Feed