Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

for

  1. D

    TCC/LE's for command does not correctly handle filenames with special characters.

    For example for /f "usebackq" %f in ("Take Command Reinvents the Windows Console and CMD.EXE [IeAPFpFP3_k].url") echo %f The contents of the file are displayed correctly under both Take Command and CMD, but under TCC/LE 14 the result is that ECHO is OFF Only if you remove the [ and ]...
  2. Claire_CJS

    random option for for loops? /m?

    Could we please have an option that processes the items in a for loop in random order? There’s an infinite # of use cases for this, but to put it the most abstract terms possible: Say you have a list of 10,000 tasks to do. [Files to process. People to call. Games to play. Items to purchase...
  3. J

    Capturing output from date.exe

    Hi, The following seems to work under CMD but not under TCC: FOR /f "tokens=1,2,3" %%i in ('r:\gnu\bin\date.exe +"%%Y %%m %%d"') DO ( SET YY=%%i SET MO=%%j SET MD=%%k ) I've been trying all sorts of variations, to no avail... Also, is there a way to know if a script is being run from CMD or...
  4. D

    TCC has much more elegant ways for usebackq. What ways?

    Take Command / TCC Help v.24 page 410: "usebackq : Duplicates the awkward CMD syntax. A back quoted string is executed as a command; a single quoted string is a literal string; and double quotes quote filenames in the file set. We don't recommend usebackq for batch files written for TCC, as TCC...
Back
Top