In Windows PowerShell, is there a way to "evaluate" a variable so that I have its value pasted into the command prompt? The usage scenario I would like to perform is as follows:
let's say I have a variable $path
which contains "C:/Users/Me/Some/Long/Path".
I would like to write cd $path
into the command prompt and then substitute $path
with its value, so that I have cd C:/Users/Me/Some/Long/Path
in my command prompt and can manually edit the long path and eventually press enter to change the directory.
Is this or a similar behavior available? Would it be possible with just the variable, without the cd
at the beginning?