+ Reply to Thread
Results 1 to 2 of 2

Thread: how to Stop Powershell from exiting

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    3

    how to Stop Powershell from exiting

    I`d like to Stop Powershell from exiting , any idea how can i do so ?

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    4
    Hi subboy , glad to gelp you again.
    Well , This script will not exit if you "click it" , anyway try the below code :
    Code:
    param($Work)
    if (!$Work) {
        powershell -noexit -file $MyInvocation.MyCommand.Path 1
        return
    }

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts