Results 1 to 3 of 3

Thread: doubt

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    doubt

    what is the difference between "temp" command and "%temp%" command


  2. #2
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    Re: doubt

    %temp% is a variable defined in windows that points to temporary files. Typically %temp% points to c:\documents and settings\"user"\Local Settings\Temp

    what are you referring to for the other temp?


  3. #3
    Expert Member
    Join Date
    Mar 2012
    Answers
    208

    Re: doubt

    If a command contains two percent signs, MS-DOS will treat any characters between them as an environment variable to be expanded.The environment variable called "Temp", that when using the two percent symbols, will replace the %temp% with the full path of the temp folder, C:\temp, for example. If you don't have the percent symbols, then it treats the temp as the command and not as an environment variable, so not replacement will occur.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact