ALL Of The Internet Word

The latest news on the internet either Android, Internet Marketing, iOS, Smartphone, and the like. Blogs that provide comfortable reading and rapid response to user. Providing hottest news on the internet and latest Give Away.

More on Dot Sourcing From Jeff Hicks

By
Advertisement

Dot sourcing is a feature of PowerShell whereby scripts are run in the scope of the caller rather than a separate sub-scope. When you dot source, variables, functions, psdrives, etc that were created in the script persist in the callers scope. Had you run the same script normally, these objects would have instantiated for the duration of the script then removed and garbage collected. Dot sourcing was, pre V4, a way of creating scripts of functions and then bringing them into the current scope – although with v2, the module does a better job.

Jeff Hicks shows more detail into how dot sourcing works in a new post on his MCPMag column.

0 commentaires:

Enregistrer un commentaire

Fourni par Blogger.