Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which dos command can be use in a bat file to show current path

Status
Not open for further replies.
To show the path environment variable:

echo %PATH%

To show the current directory:

cd

John
 
Don't even need the 'echo'.

A simple 'path' command in the batch file will print the current path to the screen.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top