Extracting the current command line, extracting current path

I'm sure there must be some easy way to extract my current path!

But, I started at the beginning of the help index and went to the end without any recognizable entry I could use.

I merely want to extract the current path so I can use it in a batch file.

as:

set mycurrentpath=PullPath
subst z: %mycurrentpath%

or something like that!

Can someone point me to the command that will extract the current path?
 

samintz

Scott Mintz
May 20, 2008
1,346
12
Solon, OH, USA
You have many options: _CWD, _CWDS, _CWP, _CWPS, @CWD, and @CWDS.

-Scott

derickmoore <> wrote on 01/05/2011 02:50:29 PM:


> I'm sure there must be some easy way to extract my current path!
>
> But, I started at the beginning of the help index and went to the
> end without any recognizable entry I could use.
>
> I merely want to extract the current path so I can use it in a batch
file.

>
> as:
>
> set mycurrentpath=PullPath
> subst z: %mycurrentpath%
>
> or something like that!
>
> Can someone point me to the command that will extract the current path?
>
>
>
>
 
Aug 9, 2009
161
0
set mycurrentpath=%@sfn[%_cwd]


> Subject: [Support-t-2518] Extracting the current command line,
> extracting current path
>
>
> I'm sure there must be some easy way to extract my current path!
>
> But, I started at the beginning of the help index and went to the end without any recognizable
> entry I could use.
>
> I merely want to extract the current path so I can use it in a batch file.
>
> as:
>
> set mycurrentpath=PullPath
> subst z: %mycurrentpath%
>
> or something like that!
>
> Can someone point me to the command that will extract the current path?
>
>
>
>