图形界面的 PowerShell 脚本
来源:互联网 发布:java飞机大战源码 编辑:程序博客网 时间:2024/05/22 06:41
WSH 环境下,对于VBS 脚本,既有cscript 也有 wscript,VBS 脚本很容易有一些简单的界面,例如message box, input box 等。 PowerShell 脚本呢?
SAPIEN 的 PrimalForms (和大名鼎鼎的 PrimalScript 系出同门啊)可以把 PowerShell 脚本转化为 GUI 的 Windows form 程序,呵呵。http://www.sapien.com/blog/2012/01/24/convert-powershell-scripts-to-gui-applications/
不只是转化,PrimalForms本身就是PowerShell 集成开发环境,也就是说用这个工具开发出来的 windows form 程序本身就是一个 PowerShell 脚本,这里有一个简单的guide,关于如何操作,TechNet 脚本中心的文档http://blogs.technet.com/b/heyscriptingguy/archive/2010/02/28/hey-scripting-guy-february-28-2010.aspx,很酷啊。
借助Windows form, 当然可以直接编写出GUI 界面,MS有文档 http://technet.microsoft.com/en-us/library/ff730941.aspx,但是既然有如此方便的工具,何苦这么麻烦。 这里还有一篇是用PowerShell 通过HTA来显示GUI的,http://social.technet.microsoft.com/wiki/contents/articles/2166.how-to-add-a-graphical-user-interface-to-a-powershell-script-by-using-html-applications-en-us.aspx功能上当然都可以做到,但是这样不够酷,呵呵。 比较专业级的,MS PowerShell team当然也有提供方法http://stackoverflow.com/questions/1705580/framework-for-gui-on-top-of-powershell
VMware 给vSphere也装备了 PowerCLI,MS给Hyper-V也提供了 PowerShell module, 加上基于.net framework 的无限扩展性,PS现在影响力越来越大,确实值得深入学习。PowerShell 的集成开发环境,除了PowerShell ISE,比较常见的 PowerShell GUI,PowerShell plus,名气最大的就是 PrimalScript了,不过它过于强大,不只是支持PowerShell而已。
相关资源: cmdlet & help designer http://cmdletdesigner.codeplex.com/sourcecontrol/list/changesets?ProjectName=cmdletdesigner
- 图形界面的 PowerShell 脚本
- PowerShell开发者的福音-脚本资源管理器
- 如何运行PowerShell的脚本文件
- 【powershell】查看powershell脚本版本号
- PowerShell 经典脚本贮藏室
- POWERSHELL脚本执行权限
- 编写PowerShell脚本模块
- sharepoint powershell脚本
- POWERSHELL脚本执行权限
- PowerShell 脚本(Scripts)
- powershell启用脚本
- 第一个powershell脚本
- powershell 备份文件脚本
- PowerShell 脚本中的密码
- powershell编写脚本模块
- 数据库管理——Powershell——使用Powershell脚本找出消耗最多磁盘空间的文件
- [2月25日的脚本] 如何自动地安装NET4.5, PowerShell 3.0, KB2592525 (PowerShell)
- [11] Windows PowerShell DSC学习系列---如何定制一个基于PowerShell脚本实现的DSC Resource
- 在应用程序中集成浏览器控件(Update)(Subjet to change without notice)
- 浏览器集成教学 自定义浏览器(Updated for Windows XP SP2)
- Spring事务配置的五种方式 (转载)
- 关于一道微软面试题(据称)“飞机问题”详细解答
- C/C++位运算
- 图形界面的 PowerShell 脚本
- _beginthreadex与CreateThread区别与联系
- C语言深度解剖读书笔记之——C语言基础测试题
- jsp第五课-jsp中的文件操作
- Windows 8 Consumer Preview Edition(resource download)
- Android 屏幕旋转后防止重新执行onCreate的方法。
- NSString 和NSData
- android 之DatePicker和TimePicker系列
- 如何查看Linux系统中逻辑和物理cpu的个数