![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||