Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Automatic code execution on exit

Reply
 
Old 07-26-2006   #1 (permalink)
=?Utf-8?B?Um9tYW4gS3V6bWlu?=


 
 

Automatic code execution on exit

Is it possible to set some code for automatic execution on PowerShell exit? I
mean interactive session.

If yes:

*) how?
*) will it work if I exit not by ‘exit’ but by closing a console window?

--
Thanks,
Roman

My System SpecsSystem Spec
Old 07-26-2006   #2 (permalink)
=?Utf-8?B?ZHJlZXNjaGtpbmQ=?=


 
 

RE: Automatic code execution on exit

This feature is not implemented in PowerShell V1, but it has been suggested
before.
If you own a Windows Live ID (Microsoft Passport) or hotmail account you can
vote for it on the following microsoft connect site or file your own
suggestions and bug reports.

https://connect.microsoft.com/feedba...8962&SiteID=99

--
greetings
dreeschkind


"Roman Kuzmin" wrote:

> Is it possible to set some code for automatic execution on PowerShell exit? I
> mean interactive session.
>
> If yes:
>
> *) how?
> *) will it work if I exit not by ‘exit’ but by closing a console window?
>
> --
> Thanks,
> Roman

My System SpecsSystem Spec
Old 07-26-2006   #3 (permalink)
=?Utf-8?B?ZGFuY2UyZGll?=


 
 

RE: Automatic code execution on exit

Jeffrey's answer on PowerShell team blog site:
http://blogs.msdn.com/powershell/arc...94.aspx#654617

"Roman Kuzmin" wrote:

> Is it possible to set some code for automatic execution on PowerShell exit? I
> mean interactive session.
>
> If yes:
>
> *) how?
> *) will it work if I exit not by ‘exit’ but by closing a console window?
>
> --
> Thanks,
> Roman

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
objshell.exec exit code VB Script
Re: how to exit code $false PowerShell
Get exit code from Batch file? PowerShell
STERRR and Exit Code - how to obtain from PSH? PowerShell
Computer Browser service fails with exit code 1068 Vista networking & sharing


Vista Forums 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 Ltd

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