domenica 10 ottobre 2010

For example, to display current working directory, just use the following command:

Echo %CD%

To save and store the current directory where a file is located for later use after change directory (cd) to other folder to perform other operations, use the following commands:

Set CURRENTDIR=%CD%

The %CURRENTDIR% variable to store the current working directory, which can be used in later batch commands, which as changing back to this previous directory.

Nessun commento:

Posta un commento