It would have been much easier to write Convert-WindowsImage as a C# program, but I decided that it was more interesting to showcase what PowerShell can do. If you want an example of a script with a UI, you can check out Convert-WindowsImage, which I wrote a year or so ago. If you're actually writing a program, using a language like C# may be a better decision. There's also the ShowUI module on CodePlex, which is free, as is the WPK - which is part of the PowerShellPack.Īll of these tools are great, and PowerShell is an awesome language, but if you really need to have a graphical user interface for your script, you should perhaps question whether you're actually writing a program instead. PowerShell Studio 2012 from Sapien has a built-in GUI designer, but it's fairly expensive. There also needs to be a output area to display results of operations. The script may contain multiple functions and so require multiple buttons linked to each function. What is the best tool to create a GUI from scratch for a PowerShell script. 还有 showui module 在codeplex上是免费的,wpk是免费的 powershellpack. Powershell Studio 2012 来自Sapien的powershell Studio 来自Sapien的GUI设计师相当昂贵.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |