Friday, 31 July 2020

How to add New Path to existing Windows Path

How to add New Path to existing Windows Path:-

 Syntax  
 path 

Description:-

NOTE:-  before running Batch-programe, store the original path of your computer
by using following command . 


path >> c:\main\bat\path1.txt   

(storing original path of your computer text file called "path1.txt" )

Note:- Running prg that tells the path  which directories to search for executable files in response to commands issued by a user.

Examples parameter:- 

type path in cmd.exe window. This will display ...

path=c:\windows\system32;

to add any new directory path example this directory = c:\main\bat; adding to existing path to c:\windows\system32; 

type the following command in Dos Prompt.

set path=%path%;c:\main\bat

Now type "path" and check, c:\main\bat added to main path.

path=c:\windows\system32;c:\main\bat;

NOTE:- More Parameters and detail description goto c:\windows\system32\path/?

No comments:

Post a Comment

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-

HOW TO BACKUP YOUR ALL DIRECTORY IN YOUR COMPUTER AND FILE NAMES:-   Syntax         tree   /f Description:- Displays names of files in a dir...