![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PowerShell&Cmd&Bat
meander
三年Java开发经验,两年C#开发经验。善于使用eclipse和visual studio开发工具。从事过ERP和数据存储软件开发。专注于企业集成。
展开
-
如何编写自己的cmdlet
如果想自定义一个类似于PowerShell的Get-Process的cmdlet,例如Get-Proc,如何自己编写这样一个cmdlet呢?查阅msdn,其基本步骤是: 1. 确定cmdlet的名字:通常cmdlet都采取verb-noun的方式,确定自定义的cmdlet属于哪转载 2011-09-06 12:55:40 · 767 阅读 · 0 评论 -
Build a PowerShell cmdlet
Link:http://www.codeproject.com/KB/powershell/PowerShell.aspx?display=Mobile What is Windows PowerShell? Windows PowerShell (a.k.a. Monad)转载 2011-09-06 13:09:16 · 622 阅读 · 0 评论 -
TimeZone
TimeZone Convert: //要计算的区时=已知区时-(已知区时的时区-要计算区时的时区),(注:东时区为正,西时区为负) //当算出的区时为负数时,应加上24:00,日期减一天 //当算出的区时大于或等于24:00时,应减去24:00,日期加一天 如果是在DateTimePicker中计算那么只要 DateTimePicker.Value.AddHours(-((cur原创 2011-10-19 15:04:19 · 815 阅读 · 0 评论 -
Basic Cmd Command
Link: Cmd Command net use ipipc$ " " /user:" " 建立IPC空链接 net use ipipc$ "密码" /user:"用户名" 建立IPC非空链接 net use h: ipc$ "密码" /user:"用户名" 直接登陆后映射对方C:到本地为H: net use h: ipc$ 登陆后映射对方C:到本地为H: net use转载 2011-12-01 08:54:09 · 1088 阅读 · 0 评论 -
Bat Command
1.Echo 命令 打开回显或关闭请求回显功能,或显示消息。如果没有任何参数,echo 命令将显示当前回显设置。 语法 echo [{on|off}] [message] Sample篅echo off / echo hello world 在实际应用中我们会把这条命令和重定向符号(也称为管道符号,一般用> >> ^)结合来实现输入一些命令到特定格式的文件中.这将在以后的例子中体转载 2011-12-01 08:52:33 · 1244 阅读 · 0 评论 -
Install And Config PowerShell
必须先在计算机上安装和配置 Windows PowerShell 和 Windows 远程管理 (WinRM) 的正确版本,然后才能使用 Windows PowerShell。您必须使用 Windows Management Framework,其中包含 Windows PowerShell v2 和 WinRM 2.0 的正确版本。 如果您的计算机运行的是 Windows 7 或 Window转载 2011-12-02 16:09:01 · 571 阅读 · 0 评论 -
PowerShel Editor
PowerGUI:免费的PowerShell编辑器 ========================== 下载地址:http://www.powergui.org/index.jspa PowerGUI Visual Studio Extension:集成到Visual Studio中的插件 ======================================转载 2011-09-06 14:37:29 · 691 阅读 · 0 评论 -
PowerShell Learn Resource
PowerShell 2.0 Command PowerShell.Com Windows PowerShell Blog Windows PowerShell原创 2011-12-02 10:23:45 · 512 阅读 · 0 评论