PrimalScript in Visual Studio .NET

Painting Code 3/9 in Visual Studio .NET PrimalScript
PrimalScript
Code 3/9 Generation In .NET
Using Barcode generation for Visual Studio .NET Control to generate, create Code 39 Full ASCII image in Visual Studio .NET applications.
PowerShell Analyzer
Scanning Code-39 In .NET Framework
Using Barcode scanner for .NET framework Control to read, scan read, scan image in .NET framework applications.
Vendor Price URL
Barcode Drawer In Visual Studio .NET
Using Barcode printer for Visual Studio .NET Control to generate, create barcode image in .NET applications.
Shell Tools, LLC $129 wwwpowershellanalyzercom
Decode Bar Code In VS .NET
Using Barcode recognizer for VS .NET Control to read, scan read, scan image in Visual Studio .NET applications.
Figure 921 Windows PowerShell Analyzer 10 for WPS 10
Drawing Code39 In Visual C#.NET
Using Barcode drawer for VS .NET Control to generate, create Code 39 image in VS .NET applications.
PrimalScript
Code 3 Of 9 Generation In .NET
Using Barcode encoder for ASP.NET Control to generate, create Code39 image in ASP.NET applications.
The universal editor PrimalScript supports editing WPS scripts starting with version 41 (see Figure 922) For further information, refer to the website of the vendor, Sapien
Making Code 3/9 In Visual Basic .NET
Using Barcode creator for VS .NET Control to generate, create Code39 image in .NET framework applications.
9 POWERSHELL TOOLS
Barcode Printer In .NET Framework
Using Barcode maker for .NET Control to generate, create barcode image in VS .NET applications.
9
Data Matrix 2d Barcode Generator In VS .NET
Using Barcode creator for Visual Studio .NET Control to generate, create Data Matrix image in .NET applications.
PowerShell Tools
Code 128 Encoder In VS .NET
Using Barcode generator for VS .NET Control to generate, create Code 128C image in .NET framework applications.
PrimalScript
Create GS1 - 12 In .NET Framework
Using Barcode creator for VS .NET Control to generate, create UPC-A Supplement 5 image in .NET applications.
Vendor Price URL
Create MSI Plessey In .NET Framework
Using Barcode encoder for Visual Studio .NET Control to generate, create MSI Plessey image in Visual Studio .NET applications.
Sapien From $179 wwwprimalscriptcom/
Barcode Drawer In C#.NET
Using Barcode creator for Visual Studio .NET Control to generate, create barcode image in Visual Studio .NET applications.
Table 91 compares PrimalScript 45 with PowerShellPlus 10 and the PowerShell IDE, demonstrating on one hand that PowerShellPlus offers more functions for WPS, but showing on the other hand that PrimalScript is a universal editor Table 91 Comparison of PrimalScript 45 and PowerShellPlus 10
Data Matrix ECC200 Recognizer In VS .NET
Using Barcode reader for VS .NET Control to read, scan read, scan image in Visual Studio .NET applications.
PowerShellPlus 10 PowerShell IDE 10 PrimalScript 45
European Article Number 13 Decoder In VS .NET
Using Barcode scanner for Visual Studio .NET Control to read, scan read, scan image in .NET framework applications.
Console for interactive input Script editor IntelliSense for commandlets (see Figure 923) IntelliSense for parameters (see Figure 924) IntelliSense for class names IntelliSense for NET class members IntelliSense for variable names (see Figure 925) IntelliSense for variable members
Bar Code Creator In Java
Using Barcode generation for Java Control to generate, create barcode image in Java applications.
Yes Yes Yes
Barcode Printer In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create bar code image in ASP.NET applications.
No Yes Yes
Create Barcode In Visual Studio .NET
Using Barcode drawer for ASP.NET Control to generate, create barcode image in ASP.NET applications.
No Yes Yes
UPC-A Supplement 5 Printer In .NET
Using Barcode printer for ASP.NET Control to generate, create UPC Code image in ASP.NET applications.
Yes Yes Yes Yes
Creating Code 128 Code Set B In VS .NET
Using Barcode generation for ASP.NET Control to generate, create Code128 image in ASP.NET applications.
Yes No No No
Yes No No No
PrimalScript
PowerShellPlus 10
PowerShell IDE 10
PrimalScript 45
IntelliSense for path names Debugging Support for other types of les
Yes Yes XML
No Yes N/A
No Yes WSH, ActionScript, AWK, AutoIt, Batch, HTA, Kixtart, LotusScript, Perl, Python, Rebol, REXX, Ruby, SQL, Tcl, WinBatch, ASP, HTML, JSP, PHP, XML, XLST, XSD, C#, C++, VB, ColdFusion ua
9 POWERSHELL TOOLS
Figure 922 Output of a WPS script in PrimalScript 2007
9
PowerShell Tools
Figure 923 IntelliSense for commandlets
Figure 924 IntelliSense for parameters
PowerShell Help
Figure 925 IntelliSense for class names
PowerShell Help
PowerShell Help is a simple tool to show the stored help text for commandlets stored in XML les (see Figure 926)
PowerShell Help
Vendor Price URL
Sapien Free wwwprimalscriptcom/Free_Tools/indexasp
9 POWERSHELL TOOLS
9
PowerShell Tools
Figure 926 PowerShell Help for WPS 10
Summary
In this chapter, you learned that the WPS console is basically the same as the classic Windows console, with just a few more features You can add input support with the free PowerTab tool The third-party tool PowerShellPlus provides full IntelliSense support for the console Microsoft does not provide an editor for WPS scripts For such, you can choose between the free, albeit incomplete PowerShell IDE and the commercial products PowerShellPlus Editor and PrimalScript
C H A P T E R
TIPS, TRICKS, AND TROUBLESHOOTING
In this chapter:
Debugging and Tracing Commandlet Extensions Command History System and Host Information PowerShell Pro les Graphical User Interfaces 171 174 186 187 189 196
This chapter contains a few tips for your work with Windows PowerShell (WPS), including debugging, installing commandlet extensions, using pro le scripts and the command history, and displaying user interfaces The chapter also introduces a few of the available commandlet extensions from third-party vendors and the open source community
Debugging and Tracing
Regarding debugging, the commandlets offer a few common parameters:
With the parameters -Verbose and Debug, the administrator gets more output than usual With Con rm, the administrator requests that all actions that make any changes have to be recon rmed by the user To be on the safe side, you can simulate actions with WhatIf before starting the real execution
10 Tips, Tricks, and Troubleshooting
WARNING The parameters Con rm and WhatIf are not supported by all commandlets
When you use WhatIf with the commandlet Stop-Service, WPS lists in detail which services Windows will really stop, according to existing service dependencies -WhatIf is also very helpful when you use a command with a placeholder Figure 101 shows which services would be stopped when StopService a* is executed
Figure 101 Operations with placeholders can have severe consequences; WhatIf demonstrates which services would be affected
Verbose Execution
Detailed information about a single commandlet can be gathered via the standard parameter verbose If you want to get the same for whole scripts, use Set-PsDebug -trace 1 or Set-PsDebug -trace 2 Figure 102 shows the output of trace 1 With trace 2, the output would be even more detailed
Debugging and Tracing
10 TIPS, TRICKS, AND TROUBLESHOOTING
Figure 102 Protocoling a script execution
Single-Step Mode
With the commandlet Set-PsDebug step, you can execute a script step by step WPS not only executes the steps, it also asks after each step whether you want to continue the execution (see Figure 103)
Measuring Execution Time
The commandlet Measure-Command shows, in the form of a TimeSpan object, how much time a command needs for execution For example
Measure-Command { Get-Process | Foreach-Object { $_ws } }
Tracing
You can activate a trace with the commandlet Set-TraceSource, which displays internal information about each step processed within the WPS environment Get-TraceSource lists all traceable sources By default, there are 176 sources This shows the complexity of the matter, which goes far beyond the scope of this book