Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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?
 
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?
>
>
>
>
 
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?
>
>
>
>
 

Similar threads

Back
Top