Current directory in environment variable?

How do I get the current directory from the cd command into an environment variable? Use the set command somehow?
guy-pcAsked:
Who is Participating?
 
SteveGTRConnect With a Mentor Commented:
set currentdir=%cd%
0
 
johnb6767Commented:
Mind if I ask what you are trying to accomplish?
0
 
SteveGTRCommented:
No reason for a B... You happen to ask a simple question. Just because the answer was simply answered it doesn't mean that it wasn't the best answer...

Lord I do dislike the grading system's effect on point distribution. Just plain stupid.
0
 
SteveGTRCommented:
Oh, your a newbie and don't understand the grading system... So sorry :)

There's another reason for disliking the grading system.

My free advice to you for success on EE. Always grade with an A. It doesn't cost you anything and doesn't cause bad blood.
0
All Courses

From novice to tech pro — start learning today.