Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Terminating the execution of a script

$
0
0

I apologize for the very basic question, but I was unable tyo locate the answer in the web.

How can I tell a scipt to stop execution (do not do anything else)?

I want to issue a command to terminate the execution of the script if a given condition occurs or simply because I don't want to execute the following lines.

Commands like "Stop", "Exit" look to do different things.

The command I locates that best fits my need is "Throw", but I am not sure it is the right choice...

Regards

Mario

 


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>