Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Accessing the Environemnt from PowerShell

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-11-2007   #1 (permalink)
bill
Guest


 

Accessing the Environemnt from PowerShell

I am trying to access the Environment using this:

PS C:\> cd Env;

I get this error:

Set-Location : Cannot find path 'C:\Env' because it does not exist.
At line:1 char:3
+ cd <<<< Env;

PS C:\>


When I run Get_PSDrive I get

...
Env Environment
...



What Am I missing here?

TIA,

Bill





My System SpecsSystem Spec
Old 01-11-2007   #2 (permalink)
Maximilian Hänel
Guest


 

Re: Accessing the Environemnt from PowerShell

Hi bill,

> I am trying to access the Environment using this:
>
> PS C:\> cd Env;


Try this:

PS C:\> cd env:

You (mistakenly?) wrote a semicolon instead of a colon.

cu

Max
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Exchange 5.5 hidden recipients with PowerShell ADSI Dan Roberts @ Kent State PowerShell 1 07-22-2008 02:35 PM
Accessing System 32 and COM API's for Vista thru Powershell Spooky PowerShell 3 12-17-2007 08:38 AM
Powershell Plus - Free for non commercial Use and Powershell Analyzer1.0 released Karl Prosser[MVP] PowerShell 2 12-12-2007 12:43 PM
Automatic PowerShell Error Parsing in PowerShell Analyzer and PowerShellPlus Karl Prosser[MVP] PowerShell 0 11-14-2007 02:32 AM
PowerShell Leaders Join Forces and offer a pre-release version of PowerShell for 50% off the retail value klumsy@xtra.co.nz PowerShell 0 06-19-2007 02:42 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51