1.

Solve : i have a question...!!!?

Answer»

I need to ask that what do we mean by the environment variables i the system.......and how do they affect the path definitions in the command prompt....An Environment Variable consists of information which is stored at a named location. To retrieve the information you simply have to call the name.

Here are examples of the Path and PATHEXT environment variables:
Quote

Path=c:\windows;c:\windows\system32;c:\bat
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH


When you enter an external command at the Command Prompt the locations in the Path Environment Variable are searched for whatever you entered. So if you wanted to RUN the External Command XCopy the folders in the Path environment variable, C:\WINDOWS, C:\WINDOWS\SYSTEM32 and C:\BAT, will be searched for a file named XCopy with the extension of .COM, .EXE, .BAT, .CMD, etc.. from the PATHEXT environment variable.

This is very handy as it MEANS you do not need to know where the file is LOCATED as long as it is located in ONE of the folders mentioned in the Path environment variable.

If you enter XCopy and XCopy is not located in one of the folders mentioned in the Path environment variable the error message "'XCopy' is not recognised as an INTERNAL or external command, operable program or batch file" will be displayed.

To see all the global environment variables set in your pc enter SET at the command prompt.

Hope this helps.


Discussion

No Comment Found