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

PowerPad

Closed Thread
 
Thread Tools Display Modes
Old 05-29-2007   #1 (permalink)
William Stacey [C# MVP]
Guest


 

PowerPad

Here is an app I posted for the psh community. PowerPad is a quick way to
get multi-line edit from the cmd line when you just want to edit a function,
script, or block quick and run it and return to console.
http://powerlocker.com

Hope it finds a spot in your toolbox.

--
William Stacey [C# MVP]



Old 05-30-2007   #2 (permalink)
RichS
Guest


 

RE: PowerPad

Looks like this could be useful

Is there any thought to combining the community products into a single
snapin rather than having multiple snapins to download and install
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"William Stacey [C# MVP]" wrote:

> Here is an app I posted for the psh community. PowerPad is a quick way to
> get multi-line edit from the cmd line when you just want to edit a function,
> script, or block quick and run it and return to console.
> http://powerlocker.com
>
> Hope it finds a spot in your toolbox.
>
> --
> William Stacey [C# MVP]
>
>
>
>

Old 05-30-2007   #3 (permalink)
dreeschkind
Guest


 

RE: PowerPad

Nice work! I think this little tool will be quite useful for me as I'm not a
fan of those big and slow script editors that take ages to start up.
I like it!

Two questions:
- can I customize the toolbar to add my own buttons for scripts?
- F5 seems to run everything in the window, is there a hotkey that only runs
the code in the current line?

--
greetings
dreeschkind

"William Stacey [C# MVP]" wrote:

> Here is an app I posted for the psh community. PowerPad is a quick way to
> get multi-line edit from the cmd line when you just want to edit a function,
> script, or block quick and run it and return to console.
> http://powerlocker.com
>
> Hope it finds a spot in your toolbox.
>
> --
> William Stacey [C# MVP]
>
>
>
>

Old 05-30-2007   #4 (permalink)
dreeschkind
Guest


 

RE: PowerPad

Uh, I got another question:

Is it possible to print the prompt somewhere in the PowerPad window or in
the PowerShell window? I don't like to have it in the window title of the
powershell window and can see it using PowerPad at the moment.

--
greetings
dreeschkind


"William Stacey [C# MVP]" wrote:

> Here is an app I posted for the psh community. PowerPad is a quick way to
> get multi-line edit from the cmd line when you just want to edit a function,
> script, or block quick and run it and return to console.
> http://powerlocker.com
>
> Hope it finds a spot in your toolbox.
>
> --
> William Stacey [C# MVP]
>
>
>
>

Old 05-30-2007   #5 (permalink)
RichS
Guest


 

RE: PowerPad

highligh the line you want toi execute and press F5 or execute
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"dreeschkind" wrote:

> Nice work! I think this little tool will be quite useful for me as I'm not a
> fan of those big and slow script editors that take ages to start up.
> I like it!
>
> Two questions:
> - can I customize the toolbar to add my own buttons for scripts?
> - F5 seems to run everything in the window, is there a hotkey that only runs
> the code in the current line?
>
> --
> greetings
> dreeschkind
>
> "William Stacey [C# MVP]" wrote:
>
> > Here is an app I posted for the psh community. PowerPad is a quick way to
> > get multi-line edit from the cmd line when you just want to edit a function,
> > script, or block quick and run it and return to console.
> > http://powerlocker.com
> >
> > Hope it finds a spot in your toolbox.
> >
> > --
> > William Stacey [C# MVP]
> >
> >
> >
> >

Old 05-30-2007   #6 (permalink)
William Stacey [C# MVP]
Guest


 

Re: PowerPad

Thanks. RichS answered the F5 question. Have to do by selection as if
nothing was highlighted it could not know if F5 means run the whole script
or just the current line. I guess I could add another key (i.e. F6) to run
current line regarless of what is selected or not. I plan on adding snippet
support so you can save your favorite snippets and have em available
quickly. I don't want to get into a treeview, but keep it simple. Maybe
just a list down the right side or something. Love the feedback.

--
William Stacey [C# MVP]
PowerLocker, PowerPad
www.powerlocker.com



"dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message
news:F5EA91E0-0339-457A-AE33-34BFA25901F5@microsoft.com...
| Nice work! I think this little tool will be quite useful for me as I'm not
a
| fan of those big and slow script editors that take ages to start up.
| I like it!
|
| Two questions:
| - can I customize the toolbar to add my own buttons for scripts?
| - F5 seems to run everything in the window, is there a hotkey that only
runs
| the code in the current line?
|
| --
| greetings
| dreeschkind
|
| "William Stacey [C# MVP]" wrote:
|
| > Here is an app I posted for the psh community. PowerPad is a quick way
to
| > get multi-line edit from the cmd line when you just want to edit a
function,
| > script, or block quick and run it and return to console.
| > http://powerlocker.com
| >
| > Hope it finds a spot in your toolbox.
| >
| > --
| > William Stacey [C# MVP]
| >
| >
| >
| >


Old 05-30-2007   #7 (permalink)
William Stacey [C# MVP]
Guest


 

Re: PowerPad

Don't follow completely. The prompt does not appear in psh console, because
as far as it is concerned, we are still running a cmd that has not returned
yet. IMO, it is also a visual indication that you can't just start typing
in the psh window because you have a PowerPad window open. Could add a fony
prompt before we start, but not sure this adds anything. Any other opinions
on this?

--
William Stacey [C# MVP]
PowerLocker, PowerPad
www.powerlocker.com



"dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message
news:3E4DB103-88A2-4646-A899-BDD059DAB999@microsoft.com...
| Uh, I got another question:
|
| Is it possible to print the prompt somewhere in the PowerPad window or in
| the PowerShell window? I don't like to have it in the window title of the
| powershell window and can see it using PowerPad at the moment.
|
| --
| greetings
| dreeschkind
|
|
| "William Stacey [C# MVP]" wrote:
|
| > Here is an app I posted for the psh community. PowerPad is a quick way
to
| > get multi-line edit from the cmd line when you just want to edit a
function,
| > script, or block quick and run it and return to console.
| > http://powerlocker.com
| >
| > Hope it finds a spot in your toolbox.
| >
| > --
| > William Stacey [C# MVP]
| >
| >
| >
| >


Old 05-30-2007   #8 (permalink)
dreeschkind
Guest


 

Re: PowerPad

"William Stacey [C# MVP]" wrote:

> Don't follow completely.


Sorry, spelling mistake. My last post should read "... and I can NOT see the
prompt using PowerPad right now."

> The prompt does not appear in psh console, because
> as far as it is concerned, we are still running a cmd that has not returned
> yet.


Ok I see, but when I type for example 'cd c:\windows' and hit F5, I don't
know if the current location really has changed because I can't see my prompt
anymore when using PowerPad. Hm, I'm not quite sure... Whould it be possible
to automatically run the prompt function after you run the code by hitting F5
/ F6 ? I think that should print the prompt in the main window.

> IMO, it is also a visual indication that you can't just start typing
> in the psh window because you have a PowerPad window open. Could add a fony
> prompt before we start, but not sure this adds anything.


No need for a fake prompt ;-) , but maybe something like an additional
textbox at the top or bottom of PowerPad that only takes one line and runs
the code when hitting Enter. Just like the real powershell prompt, but with
clipboard (ctrl-v) support! Then I could switch between the single line
(command mode) and the multi-line textbox (scripting) using Tab.
Does this make any sense to anyone else than me?


Also Snippet support as a treeview is a good idea as long as it doesn't make
PowerPad too slow. Right now it performs very well on my old notebook!

Btw.: Did I mention that I like the idea of a snippet PsDRIVE (which might
be linked to the PowerShell community via internet)?! Maybe someone has the
time to implement this, unfortunately I'm too busy for this right now.

--
greetings
dreeschkind

> --
> William Stacey [C# MVP]
> PowerLocker, PowerPad
> www.powerlocker.com
>
>
>
> "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message
> news:3E4DB103-88A2-4646-A899-BDD059DAB999@microsoft.com...
> | Uh, I got another question:
> |
> | Is it possible to print the prompt somewhere in the PowerPad window or in
> | the PowerShell window? I don't like to have it in the window title of the
> | powershell window and can see it using PowerPad at the moment.
> |
> | --
> | greetings
> | dreeschkind
> |
> |
> | "William Stacey [C# MVP]" wrote:
> |
> | > Here is an app I posted for the psh community. PowerPad is a quick way
> to
> | > get multi-line edit from the cmd line when you just want to edit a
> function,
> | > script, or block quick and run it and return to console.
> | > http://powerlocker.com
> | >
> | > Hope it finds a spot in your toolbox.
> | >
> | > --
> | > William Stacey [C# MVP]
> | >
> | >
> | >
> | >
>
>
>

Old 05-30-2007   #9 (permalink)
William Stacey [C# MVP]
Guest


 

Re: PowerPad

I like those ideas in general. I will see what I can come up with.

--
William Stacey [C# MVP]
PowerLocker, PowerPad
www.powerlocker.com



"dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message
news:4161190C-7FA4-47BC-9E02-6F69AC329E60@microsoft.com...
| "William Stacey [C# MVP]" wrote:
|
| > Don't follow completely.
|
| Sorry, spelling mistake. My last post should read "... and I can NOT see
the
| prompt using PowerPad right now."
|
| > The prompt does not appear in psh console, because
| > as far as it is concerned, we are still running a cmd that has not
returned
| > yet.
|
| Ok I see, but when I type for example 'cd c:\windows' and hit F5, I don't
| know if the current location really has changed because I can't see my
prompt
| anymore when using PowerPad. Hm, I'm not quite sure... Whould it be
possible
| to automatically run the prompt function after you run the code by hitting
F5
| / F6 ? I think that should print the prompt in the main window.
|
| > IMO, it is also a visual indication that you can't just start typing
| > in the psh window because you have a PowerPad window open. Could add a
fony
| > prompt before we start, but not sure this adds anything.
|
| No need for a fake prompt ;-) , but maybe something like an additional
| textbox at the top or bottom of PowerPad that only takes one line and runs
| the code when hitting Enter. Just like the real powershell prompt, but
with
| clipboard (ctrl-v) support! Then I could switch between the single line
| (command mode) and the multi-line textbox (scripting) using Tab.
| Does this make any sense to anyone else than me?
|
|
| Also Snippet support as a treeview is a good idea as long as it doesn't
make
| PowerPad too slow. Right now it performs very well on my old notebook!
|
| Btw.: Did I mention that I like the idea of a snippet PsDRIVE (which might
| be linked to the PowerShell community via internet)?! Maybe someone has
the
| time to implement this, unfortunately I'm too busy for this right now.
|
| --
| greetings
| dreeschkind
|
| > --
| > William Stacey [C# MVP]
| > PowerLocker, PowerPad
| > www.powerlocker.com
| >
| >
| >
| > "dreeschkind" <dreeschkind@discussions.microsoft.com> wrote in message
| > news:3E4DB103-88A2-4646-A899-BDD059DAB999@microsoft.com...
| > | Uh, I got another question:
| > |
| > | Is it possible to print the prompt somewhere in the PowerPad window or
in
| > | the PowerShell window? I don't like to have it in the window title of
the
| > | powershell window and can see it using PowerPad at the moment.
| > |
| > | --
| > | greetings
| > | dreeschkind
| > |
| > |
| > | "William Stacey [C# MVP]" wrote:
| > |
| > | > Here is an app I posted for the psh community. PowerPad is a quick
way
| > to
| > | > get multi-line edit from the cmd line when you just want to edit a
| > function,
| > | > script, or block quick and run it and return to console.
| > | > http://powerlocker.com
| > | >
| > | > Hope it finds a spot in your toolbox.
| > | >
| > | > --
| > | > William Stacey [C# MVP]
| > | >
| > | >
| > | >
| > | >
| >
| >
| >


Old 06-04-2007   #10 (permalink)
Jacques Barathon [MS]
Guest


 

Re: PowerPad

"William Stacey [C# MVP]" <william.stacey@gmail.com> wrote in message
news:e37IDImoHHA.5032@TK2MSFTNGP02.phx.gbl...
> Here is an app I posted for the psh community. PowerPad is a quick way to
> get multi-line edit from the cmd line when you just want to edit a
> function,
> script, or block quick and run it and return to console.
> http://powerlocker.com
>
> Hope it finds a spot in your toolbox.


Hi William,

Thanks for sharing this tool, very nice indeed!

As a quick remark: the readme notes refer to installutil.exe for the
installation of the snap-in without mentioning where the tool is located in
Windows. The problem is that it is located in a directory which is not part
of the default path, so most users will see it as a non recognised program.
You may want to indicate that the tool can be found in the .NET framework
installation directory, e.g. the directory below for .NET v2:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\

Also, by default a PowerShell session running in Vista will not have write
access to any directory under Program Files. As a result, running
installutil.exe will fail when attempting to write its log and state files
in the PowerPad directory. You may want to add a note that users running
Vista will have to open an elevated session to install the tool.

Jacques


Closed Thread

Thread Tools
Display Modes









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