![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Real nested Powershell interpreter Hi Together I try to make an extended Interpreter for my personal Administration to load some global Methods and execute them as i need. I did so far created a script with the following content. (just typed from mind, maybe no working as except) #scriptname start.ps1 function global:getsubdirs() { params( $folder = 'c:\' ) } $loopingplease = $true while($loopingplease) { $command = Read-host "Type Command:" if($command -eq "exit") { $loopingplease = $false } else { Invoke-Expression $command } } ##End of Script Know when i execute a long running "Invoke-expression" and stop it with CTRL-C i goes directly to the Base Powershell Command Prompt. But will still stay in my own prompt. Is it possible to do? Thanks in Advance. Ivo Looser |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Problem with Command Interpreter | the wharf rat | Vista General | 0 | 05-21-2008 03:50 PM |
| Re: Problem with Command Interpreter | propman | Vista General | 0 | 05-21-2008 03:23 PM |
| Re: Problem with Command Interpreter | propman | Vista General | 0 | 05-21-2008 03:10 PM |
| Brainf*** Compiler and Interpreter in Powershell | Peter Schneider [MVP] | PowerShell | 0 | 04-08-2007 12:06 PM |
| Brain**** Compiler & Interpreter in Powershell | Peter Schneider [MVP] | PowerShell | 0 | 04-08-2007 04:14 AM |