none
%temp% search RRS feed

  • Question

  • Litdev gave an example of doing a search with %temp%.  What does the % actually do?  I've seen others like %xxx%yyy@, but don't really understand what it does.

    JR

    Thursday, November 8, 2012 10:36 AM
    Answerer

Answers

  • It's a system environment variable. Look it here.

    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    • Marked as answer by jricestkEditor Thursday, November 8, 2012 8:14 PM
    Thursday, November 8, 2012 10:48 AM
    Answerer
  • surrounding a value with %% tells the OS that this is a system variable.  So instead of looking for a folder called temp it looks for the folder with system variable name temp.

    Type 'set' in a cmd window to see all the system variable - don't be tempted to change them!

    • Marked as answer by jricestkEditor Thursday, November 8, 2012 8:14 PM
    Thursday, November 8, 2012 10:48 AM
    Moderator

All replies

  • It's a system environment variable. Look it here.

    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    • Marked as answer by jricestkEditor Thursday, November 8, 2012 8:14 PM
    Thursday, November 8, 2012 10:48 AM
    Answerer
  • surrounding a value with %% tells the OS that this is a system variable.  So instead of looking for a folder called temp it looks for the folder with system variable name temp.

    Type 'set' in a cmd window to see all the system variable - don't be tempted to change them!

    • Marked as answer by jricestkEditor Thursday, November 8, 2012 8:14 PM
    Thursday, November 8, 2012 10:48 AM
    Moderator
  • Thanks for the good answers!


    JR

    Thursday, November 8, 2012 8:15 PM
    Answerer