Detecting delayed environment variable expansion

Discussion in 'Microsoft Windows 2000 CMD Promt' started by David Trimboli, Aug 29, 2003.

  1. I'm writing a script that requires delayed environment variable expansion,
    and I'd like to find a way to determine if the current shell is using it.
    Is there a simple way to do this, or would I have to write a piece of code
    that gives different answers depending on the status of delayed environment
    variable expansion, and test that answer? The script would warn the user
    that he needs to run CMD /V:ON before running the script. (I'm sure there's
    no way to get a script to turn DEVE on within itself.)

    David
    Stardate 3659.3
     
    David Trimboli, Aug 29, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. guard

    Re: cmd script involving delayed variable expansion in NT4?

    guard, Jul 16, 2003, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    0
    Views:
    977
    guard
    Jul 16, 2003
  2. Guest

    Set environment variable = output of exe

    Guest, Oct 7, 2003, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    4
    Views:
    1,964
    Bill Stewart
    Oct 7, 2003
  3. Ondrej Sevecek

    Delayed variable expansion from .BAT

    Ondrej Sevecek, Nov 12, 2003, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    1
    Views:
    802
    Ritchie
    Nov 12, 2003
  4. Ondrej Sevecek

    To insert ! (exclamation) into variable with delayed exp. mode

    Ondrej Sevecek, Nov 12, 2003, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    1
    Views:
    456
    Jerold Schulman
    Nov 12, 2003
  5. Jimmy

    Export Environment Variable From a Cmd line VB Exe

    Jimmy, May 26, 2004, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    2
    Views:
    1,586
    Matt Hickman
    May 26, 2004
  6. murdo

    Environment variable inside an environment variable

    murdo, Feb 24, 2005, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    7
    Views:
    3,446
    Mark V
    Feb 25, 2005
  7. ghquick

    errorlevel not set in for loop - delayed expansion !errorlevel! used

    ghquick, Jul 5, 2006, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    3
    Views:
    3,036
    Timo Salmi
    Jul 7, 2006
  8. Replies:
    3
    Views:
    1,472
    billious
    May 1, 2009
Loading...