ZTree.com  | ZEN  | About...  

 Index   Back

Set quoting   [OT]

By: Slobodan Vujnovic   Homepage   France  
Date: Jan 12,2023 at 11:07
In Response to: Set quoting (Ben Kent)

Thanks Ben, this is so cool:

dir "c:\SomeDir\%var:"=%"

What I got from the original example is that maybe one day (today?) AI
generated code will be considered the reference. It uses quotes
in SET as the most normal thing, yet, very few humans know about
it, even those who RTFM.

I wish I had this when I was writing complex BAT scripts and the
only way to debug them was ECHO OFF/ON!

321 views      
 

Messages in this Thread

 
96,640 Postings in 12,231 Threads, 350 registered users, 56 users online (0 registered, 56 guests)
Index | Admin contact |   Forum Time: Apr 12, 2024 - 2:24 pm UTC  |  Hits:62,817,826  (13,357 Today )
RSS Feed