Extracting the current command line, extracting current path

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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,232
11
Solon, OH, USA
#3
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
133
0
#5
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?
>
>
>
>