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.)

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

Ask a Question

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.