Variable for current directory ?

F

flahmeshess

Is there a variable for current directory which can be use in a batch
file ? I'm not referring to the '.' which will change whenever I
change the directory.

eg. I want to set a environment variable to my current
directory....say

set work_dir=%currentdir% if there is such a variable


Thanks very much in advanced.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top