26
Aug
09

current directory in batch files



If you ever need the current directory in a batch script, you can get it through the environment variable %CD%. To see all the environment variables defined by the shell for you, run this :
set /?

Source of this was this MSDN blog.

Advertisements

0 Responses to “current directory in batch files”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 223,800 hits

%d bloggers like this: