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!


Messages in this Thread

96,194 Postings in 12,153 Threads, 350 registered users, 27 users online (1 registered, 26 guests)
Index | Admin contact |   Forum Time: Jan 27, 2023 - 1:00 am UTC  |  Hits:53,203,593  (826 Today )
RSS Feed