Windows Powershell 命令集 cmdlets

cmdlets是Powershell的内部命令,cmdlet的类型名为System.Management.Automation.CmdletInfo,包含下列属性和方法:

Name MemberType Definition
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
CommandType Property System.Management.Automation.CommandTypes CommandType {get;}
DefaultParameterSet Property System.String DefaultParameterSet {get;}
Definition Property System.String Definition {get;}
HelpFile Property System.String HelpFile {get;}
ImplementingType Property System.Type ImplementingType {get;}
Module Property System.Management.Automation.PSModuleInfo Module {get;}
ModuleName Property System.String ModuleName {get;}
Name Property System.String Name {get;}
Noun Property System.String Noun {get;}
OutputType Property System.Collections.ObjectModel.ReadOnlyCollection`1[[System.Management.Automation.PSTypeName, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] OutputType {get;}
Parameters Property System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Management.Automation.ParameterMetadata, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Parameters {get;}
ParameterSets Property System.Collections.ObjectModel.ReadOnlyCollection`1[[System.Management.Automation.CommandParameterSetInfo, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] ParameterSets {get;}
PSSnapIn Property System.Management.Automation.PSSnapInInfo PSSnapIn {get;}
Verb Property System.String Verb {get;}
Visibility Property System.Management.Automation.SessionStateEntryVisibility Visibility {get;set;}
DLL ScriptProperty System.Object DLL {get=$this.ImplementingType.Assembly.Location;}
HelpUri ScriptProperty System.Object HelpUri {get=try
{
# ok to cast CommandTypes enum to HelpCategory because string/indentifier for
# cmdlet,function,filter,alias,externalscript is identical.
# it is ok to fail for other enum values (i.e. for Application)
$helpObject = get-help -Name ($this.Name) -Category ([string]($this.CommandType)) -ErrorAction SilentlyContinue# return first non-null uri (and try not to hit any strict mode things)
if ($helpObject -eq $null) { return $null }
if ($helpObject.psobject.properties['relatedLinks'] -eq $null) { return $null }
if ($helpObject.relatedLinks.psobject.properties['navigationLink'] -eq $null) { return $null }
$helpUri = [string]$( $helpObject.relatedLinks.navigationLink | %{ if ($_.psobject.properties['uri'] -ne $null) { $_.uri } } | ?{ $_ } | select -first 1 )
return $helpUri
}
catch {};}

下面是全部的Cmdlets命令

每个命令有一个动词和名词组成,命令的作用一目了然。

Name ModuleName Help
Add-Computer Microsoft.PowerShell.Management help
Add-Content Microsoft.PowerShell.Management help
Add-History Microsoft.PowerShell.Core help
Add-Member Microsoft.PowerShell.Utility help
Add-PSSnapin Microsoft.PowerShell.Core help
Add-Type Microsoft.PowerShell.Utility help
Checkpoint-Computer Microsoft.PowerShell.Management help
Clear-Content Microsoft.PowerShell.Management help
Clear-EventLog Microsoft.PowerShell.Management help
Clear-History Microsoft.PowerShell.Core help
Clear-Item Microsoft.PowerShell.Management help
Clear-ItemProperty Microsoft.PowerShell.Management help
Clear-Variable Microsoft.PowerShell.Utility help
Compare-Object Microsoft.PowerShell.Utility help
Complete-Transaction Microsoft.PowerShell.Management help
Connect-WSMan Microsoft.WSMan.Management help
ConvertFrom-Csv Microsoft.PowerShell.Utility help
ConvertFrom-SecureString Microsoft.PowerShell.Security help
ConvertFrom-StringData Microsoft.PowerShell.Utility help
Convert-Path Microsoft.PowerShell.Management help
ConvertTo-Csv Microsoft.PowerShell.Utility help
ConvertTo-Html Microsoft.PowerShell.Utility help
ConvertTo-SecureString Microsoft.PowerShell.Security help
ConvertTo-Xml Microsoft.PowerShell.Utility help
Copy-Item Microsoft.PowerShell.Management help
Copy-ItemProperty Microsoft.PowerShell.Management help
Debug-Process Microsoft.PowerShell.Management help
Disable-ComputerRestore Microsoft.PowerShell.Management help
Disable-PSBreakpoint Microsoft.PowerShell.Utility help
Disable-PSSessionConfiguration Microsoft.PowerShell.Core help
Disable-WSManCredSSP Microsoft.WSMan.Management help
Disconnect-WSMan Microsoft.WSMan.Management help
Enable-ComputerRestore Microsoft.PowerShell.Management help
Enable-PSBreakpoint Microsoft.PowerShell.Utility help
Enable-PSRemoting Microsoft.PowerShell.Core help
Enable-PSSessionConfiguration Microsoft.PowerShell.Core help
Enable-WSManCredSSP Microsoft.WSMan.Management help
Enter-PSSession Microsoft.PowerShell.Core help
Exit-PSSession Microsoft.PowerShell.Core help
Export-Alias Microsoft.PowerShell.Utility help
Export-Clixml Microsoft.PowerShell.Utility help
Export-Console Microsoft.PowerShell.Core help
Export-Counter Microsoft.PowerShell.Diagnostics help
Export-Csv Microsoft.PowerShell.Utility help
Export-FormatData Microsoft.PowerShell.Utility help
Export-ModuleMember Microsoft.PowerShell.Core help
Export-PSSession Microsoft.PowerShell.Utility help
ForEach-Object Microsoft.PowerShell.Core help
Format-Custom Microsoft.PowerShell.Utility help
Format-List Microsoft.PowerShell.Utility help
Format-Table Microsoft.PowerShell.Utility help
Format-Wide Microsoft.PowerShell.Utility help
Get-Acl Microsoft.PowerShell.Security help
Get-Alias Microsoft.PowerShell.Utility help
Get-AuthenticodeSignature Microsoft.PowerShell.Security help
Get-ChildItem Microsoft.PowerShell.Management help
Get-Command Microsoft.PowerShell.Core help
Get-ComputerRestorePoint Microsoft.PowerShell.Management help
Get-Content Microsoft.PowerShell.Management help
Get-Counter Microsoft.PowerShell.Diagnostics help
Get-Credential Microsoft.PowerShell.Security help
Get-Culture Microsoft.PowerShell.Utility help
Get-Date Microsoft.PowerShell.Utility help
Get-Event Microsoft.PowerShell.Utility help
Get-EventLog Microsoft.PowerShell.Management help
Get-EventSubscriber Microsoft.PowerShell.Utility help
Get-ExecutionPolicy Microsoft.PowerShell.Security help
Get-FormatData Microsoft.PowerShell.Utility help
Get-Help Microsoft.PowerShell.Core help
Get-History Microsoft.PowerShell.Core help
Get-Host Microsoft.PowerShell.Utility help
Get-HotFix Microsoft.PowerShell.Management help
Get-Item Microsoft.PowerShell.Management help
Get-ItemProperty Microsoft.PowerShell.Management help
Get-Job Microsoft.PowerShell.Core help
Get-Location Microsoft.PowerShell.Management help
Get-Member Microsoft.PowerShell.Utility help
Get-Module Microsoft.PowerShell.Core help
Get-PfxCertificate Microsoft.PowerShell.Security help
Get-Process Microsoft.PowerShell.Management help
Get-PSBreakpoint Microsoft.PowerShell.Utility help
Get-PSCallStack Microsoft.PowerShell.Utility help
Get-PSDrive Microsoft.PowerShell.Management help
Get-PSProvider Microsoft.PowerShell.Management help
Get-PSSession Microsoft.PowerShell.Core help
Get-PSSessionConfiguration Microsoft.PowerShell.Core help
Get-PSSnapin Microsoft.PowerShell.Core help
Get-Random Microsoft.PowerShell.Utility help
Get-Service Microsoft.PowerShell.Management help
Get-TraceSource Microsoft.PowerShell.Utility help
Get-Transaction Microsoft.PowerShell.Management help
Get-UICulture Microsoft.PowerShell.Utility help
Get-Unique Microsoft.PowerShell.Utility help
Get-Variable Microsoft.PowerShell.Utility help
Get-WinEvent Microsoft.PowerShell.Diagnostics help
Get-WmiObject Microsoft.PowerShell.Management help
Get-WSManCredSSP Microsoft.WSMan.Management help
Get-WSManInstance Microsoft.WSMan.Management help
Group-Object Microsoft.PowerShell.Utility help
Import-Alias Microsoft.PowerShell.Utility help
Import-Clixml Microsoft.PowerShell.Utility help
Import-Counter Microsoft.PowerShell.Diagnostics help
Import-Csv Microsoft.PowerShell.Utility help
Import-LocalizedData Microsoft.PowerShell.Utility help
Import-Module Microsoft.PowerShell.Core help
Import-PSSession Microsoft.PowerShell.Utility help
Invoke-Command Microsoft.PowerShell.Core help
Invoke-Expression Microsoft.PowerShell.Utility help
Invoke-History Microsoft.PowerShell.Core help
Invoke-Item Microsoft.PowerShell.Management help
Invoke-WmiMethod Microsoft.PowerShell.Management help
Invoke-WSManAction Microsoft.WSMan.Management help
Join-Path Microsoft.PowerShell.Management help
Limit-EventLog Microsoft.PowerShell.Management help
Measure-Command Microsoft.PowerShell.Utility help
Measure-Object Microsoft.PowerShell.Utility help
Move-Item Microsoft.PowerShell.Management help
Move-ItemProperty Microsoft.PowerShell.Management help
New-Alias Microsoft.PowerShell.Utility help
New-Event Microsoft.PowerShell.Utility help
New-EventLog Microsoft.PowerShell.Management help
New-Item Microsoft.PowerShell.Management help
New-ItemProperty Microsoft.PowerShell.Management help
New-Module Microsoft.PowerShell.Core help
New-ModuleManifest Microsoft.PowerShell.Core help
New-Object Microsoft.PowerShell.Utility help
New-PSDrive Microsoft.PowerShell.Management help
New-PSSession Microsoft.PowerShell.Core help
New-PSSessionOption Microsoft.PowerShell.Core help
New-Service Microsoft.PowerShell.Management help
New-TimeSpan Microsoft.PowerShell.Utility help
New-Variable Microsoft.PowerShell.Utility help
New-WebServiceProxy Microsoft.PowerShell.Management help
New-WSManInstance Microsoft.WSMan.Management help
New-WSManSessionOption Microsoft.WSMan.Management help
Out-Default Microsoft.PowerShell.Utility help
Out-File Microsoft.PowerShell.Utility help
Out-GridView Microsoft.PowerShell.Utility help
Out-Host Microsoft.PowerShell.Utility help
Out-Null Microsoft.PowerShell.Utility help
Out-Printer Microsoft.PowerShell.Utility help
Out-String Microsoft.PowerShell.Utility help
Pop-Location Microsoft.PowerShell.Management help
Push-Location Microsoft.PowerShell.Management help
Read-Host Microsoft.PowerShell.Utility help
Receive-Job Microsoft.PowerShell.Core help
Register-EngineEvent Microsoft.PowerShell.Utility help
Register-ObjectEvent Microsoft.PowerShell.Utility help
Register-PSSessionConfiguration Microsoft.PowerShell.Core help
Register-WmiEvent Microsoft.PowerShell.Management help
Remove-Computer Microsoft.PowerShell.Management help
Remove-Event Microsoft.PowerShell.Utility help
Remove-EventLog Microsoft.PowerShell.Management help
Remove-Item Microsoft.PowerShell.Management help
Remove-ItemProperty Microsoft.PowerShell.Management help
Remove-Job Microsoft.PowerShell.Core help
Remove-Module Microsoft.PowerShell.Core help
Remove-PSBreakpoint Microsoft.PowerShell.Utility help
Remove-PSDrive Microsoft.PowerShell.Management help
Remove-PSSession Microsoft.PowerShell.Core help
Remove-PSSnapin Microsoft.PowerShell.Core help
Remove-Variable Microsoft.PowerShell.Utility help
Remove-WmiObject Microsoft.PowerShell.Management help
Remove-WSManInstance Microsoft.WSMan.Management help
Rename-Item Microsoft.PowerShell.Management help
Rename-ItemProperty Microsoft.PowerShell.Management help
Reset-ComputerMachinePassword Microsoft.PowerShell.Management help
Resolve-Path Microsoft.PowerShell.Management help
Restart-Computer Microsoft.PowerShell.Management help
Restart-Service Microsoft.PowerShell.Management help
Restore-Computer Microsoft.PowerShell.Management help
Resume-Service Microsoft.PowerShell.Management help
Select-Object Microsoft.PowerShell.Utility help
Select-String Microsoft.PowerShell.Utility help
Select-Xml Microsoft.PowerShell.Utility help
Send-MailMessage Microsoft.PowerShell.Utility help
Set-Acl Microsoft.PowerShell.Security help
Set-Alias Microsoft.PowerShell.Utility help
Set-AuthenticodeSignature Microsoft.PowerShell.Security help
Set-Content Microsoft.PowerShell.Management help
Set-Date Microsoft.PowerShell.Utility help
Set-ExecutionPolicy Microsoft.PowerShell.Security help
Set-Item Microsoft.PowerShell.Management help
Set-ItemProperty Microsoft.PowerShell.Management help
Set-Location Microsoft.PowerShell.Management help
Set-PSBreakpoint Microsoft.PowerShell.Utility help
Set-PSDebug Microsoft.PowerShell.Core help
Set-PSSessionConfiguration Microsoft.PowerShell.Core help
Set-Service Microsoft.PowerShell.Management help
Set-StrictMode Microsoft.PowerShell.Core help
Set-TraceSource Microsoft.PowerShell.Utility help
Set-Variable Microsoft.PowerShell.Utility help
Set-WmiInstance Microsoft.PowerShell.Management help
Set-WSManInstance Microsoft.WSMan.Management help
Set-WSManQuickConfig Microsoft.WSMan.Management help
Show-EventLog Microsoft.PowerShell.Management help
Sort-Object Microsoft.PowerShell.Utility help
Split-Path Microsoft.PowerShell.Management help
Start-Job Microsoft.PowerShell.Core help
Start-Process Microsoft.PowerShell.Management help
Start-Service Microsoft.PowerShell.Management help
Start-Sleep Microsoft.PowerShell.Utility help
Start-Transaction Microsoft.PowerShell.Management help
Start-Transcript Microsoft.PowerShell.Host help
Stop-Computer Microsoft.PowerShell.Management help
Stop-Job Microsoft.PowerShell.Core help
Stop-Process Microsoft.PowerShell.Management help
Stop-Service Microsoft.PowerShell.Management help
Stop-Transcript Microsoft.PowerShell.Host help
Suspend-Service Microsoft.PowerShell.Management help
Tee-Object Microsoft.PowerShell.Utility help
Test-ComputerSecureChannel Microsoft.PowerShell.Management help
Test-Connection Microsoft.PowerShell.Management help
Test-ModuleManifest Microsoft.PowerShell.Core help
Test-Path Microsoft.PowerShell.Management help
Test-WSMan Microsoft.WSMan.Management help
Trace-Command Microsoft.PowerShell.Utility help
Undo-Transaction Microsoft.PowerShell.Management help
Unregister-Event Microsoft.PowerShell.Utility help
Unregister-PSSessionConfiguration Microsoft.PowerShell.Core help
Update-FormatData Microsoft.PowerShell.Utility help
Update-List Microsoft.PowerShell.Utility help
Update-TypeData Microsoft.PowerShell.Utility help
Use-Transaction Microsoft.PowerShell.Management help
Wait-Event Microsoft.PowerShell.Utility help
Wait-Job Microsoft.PowerShell.Core help
Wait-Process Microsoft.PowerShell.Management help
Where-Object Microsoft.PowerShell.Core help
Write-Debug Microsoft.PowerShell.Utility help
Write-Error Microsoft.PowerShell.Utility help
Write-EventLog Microsoft.PowerShell.Management help
Write-Host Microsoft.PowerShell.Utility help
Write-Output Microsoft.PowerShell.Utility help
Write-Progress Microsoft.PowerShell.Utility help
Write-Verbose Microsoft.PowerShell.Utility help
Write-Warning Microsoft.PowerShell.Utility help
(0)

相关推荐

  • PowerShell中使用Get-Alias命令获取cmdlet别名例子

    PowerShell中为了与原来的cmd命令保持兼容,特别为很多cmdlet设置了别名.这些别名跟cmd命令是同名的,但它代表着一个PowerShell中的cmdlet.比如dir这个cmd命令,它用于列出一个目录下的子文件夹和文件,在PowerShell有一个Get-ChildItem的cmdlet,它的作用也是列出一个目录下的子文件夹和文件,于是微软就给Get-ChildItem设置了一别名叫dir. 在PowerShell中,使用Get-Alias这个cmdlet,可以列出所有的别名,以及

  • CMD命令行中以管理员权限启动应用程序实现方法

    很多时候我们需要管理员权限来运行bat那么就需要结合vbscript来实现了 方法一: %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit 常用 @echo off mode con lines=30

  • PHP中执行cmd命令的方法

    本文介绍下,在php代码中执行cmd命令的方法,介绍下在php.ini文件中配置safe_mode参数支持命令执行的方法,有需要的朋友参考下. 说明: 本节内容在wamp包安装的环境实现. 首先,打开php.ini,关掉安全模式safe_mode = off,然后在看看 禁用函数列表 disable_functions = proc_open, popen, exec, system, shell_exec ,把exec去掉. php代码: 复制代码 代码如下: <?php exec("m

  • Java Web项目前端规范(采用命名空间使js深度解耦合)

    没有规矩不成方圆,一个优秀的代码架构不仅易于开发和维护,而且是一门管理与执行的艺术. 这几年来经历了很多项目,对代码之间的强耦合及书写不规范,维护性差等问题深恶痛绝.在这里,通过仔细分析后,结合自己的编码习惯总结了一套适用于javaweb项目的前端书写规范,与大家分享一下. ps:感谢阿海的创意,后期整理如下(附文件下载): 一.项目结构 这里和其他项目区别不大,我将模板抽离出来,更容易分析和理解: 解释一下:js主要包括extends(引入第三方的js).module(项目模块自己的js).l

  • JSDoc 介绍使用规范JsDoc的使用介绍

    JsDoc Toolkit不久前发布了2.3.2版本,主要还是对前版本的修复. 如果你需要使用Ant,JsDoc还有一个Ant插件:JsDoc Toolkit Ant Task 下载JsDoc Toolkit2.3.2:http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.3.2.zip命令名描述 @param @argument 指定参数名和说明来描述一个函数参数 @returns 描述函数的返回值 @author 指示代码的作者

  • PHP启动windows应用程序、执行bat批处理、执行cmd命令的方法(exec、system函数详解)

    exec 或者 system 都可以调用cmd 的命令 直接上代码: 复制代码 代码如下: <?php /** 打开windows的计算器 */ exec('start C:WindowsSystem32calc.exe'); /** php生成windows的批处理文件后,再执行这个批处理文件*/ $filename = 't.bat'; $somecontent = 'C: '; $somecontent .= 'cd "C:/Program Files/MySQL-Front&quo

  • Node.js编码规范

    调用函数的时候,函数名与左括号之间没有空格. 函数名与参数序列之间,没有空格:所有其他语法元素与左括号之间,都有一个空格. 使用小驼峰式命名法作为所有变量和属性的命名规则. 缩进使用两空格,统一使用单引号. 关联数组,除非键名中有空格或是非法字符,否则一律不用引号. 不要将不同目的的语句,合并成一行. 不要省略句末的分号,哪怕一行只有一个语句. 不要使用自增(++)和自减(--)运算符,用+=和-=代替. 不要使用"相等"(==)运算符,只使用"严格相等"(===)

  • Python使用CMD模块更优雅的运行脚本

    本文实例讲述了Python使用CMD模块更优雅的运行脚本的方法.分享给大家供大家参考.具体分析如下: 平时由于经常给测试人员调试一些东西,虽然写了一些脚本,感觉还是不方便. python的cmd模块提供的更优雅的方式,很喜欢. 刚写了一些平时常用的测试代码: # -*- coding:utf-8 -*- import os, sys from datetime import datetime import cmd import warnings from django.conf import s

  • C#调用CMD命令实例

    有时候有一些DOS命令需要我们在执行程序的时候调用,这需要使用C#提供的相关接口. 代码如下,很简单,相信大家都能看懂,我就不赘述了. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics;//这个是进行dos命令调用 namespace ExecuteCMD { //实

  • JSP 2.1和JSF 1.2规范发布预览版本

    J2EE的两种重要的表现层技术JSP和JSF发布了新技术规范的预览版本,其中最重要的一点是两者将表达式语言(Expression Language,EL)部分合二为一.在不久的将来,这两种技术有可能更进一步地彼此融合,成为一种统一的表现层技术.然而在J2EE社群的普遍观点中,如果单单作为一种视图技术,JSP并不是最佳的选择,Velocity和XSLT等基于模板的视图技术通常比JSP更方便:而基于组件的JSF也面临广泛的信任危机.两者的组合是否能得到业界的认可,还需要时间的检验. 以下是官方公告

  • js 编写规范

    在一个项目中大量使用js,工程项目与网站开发有一些不一样,在我接触的工程项目中普遍使用js 不够多,大部分客户端可做事,交给了服务端,而且在使用js时不够规范,很容易造成代码难以阅读.内存泄漏问题,不注意js 输写方式.而在网站开发中(尤其一些大网站,js输出的非常漂亮.完美无论使用jquery,还是prototype 框架,还是不用框架,都有自己良好一套东东可用) js输写最好还是可以面向对象方式 用类方向进行包装 js输写两种方式 闭包 原型 闭包:(借用的一个例子) 复制代码 代码如下:

  • bat/cmd批处理连接SqlServer数据库查询脚本

    难得今天晚上9点前赶回家,而且最近草稿箱也压了不少"湿货",就挑一篇发出来好了!不过在发文章之前先吐槽一下那个从昨天攻击张戈博客到现在还在继续的无聊蛋疼之人! 本来就算开启了云加速全缓存也是扛不住的,因为静态中混着动态请求,比如浏览计数.还好灵机一动,对这些动态做了点小手脚,现在基本毫无压力了!粗略分析一下这个攻击博客的小人,无外乎是2种人: ①.最近张戈博客流量大涨,估计遭人妒忌或者是挡人财路: ②.来张戈博客换友链被拒或被忽略的人,怀恨在心. 对于①:俗话说无人妒忌是庸才,那么无人

  • AMD异步模块定义介绍和Require.js中使用jQuery及jQuery插件的方法

    AMD 模块 AMD(异步模块定义,Asynchronous Module Definition)格式总体的目标是为现在的开发者提供一个可用的模块化 JavaScript 的解决方案. AMD 模块格式本身是一个关于如何定义模块的提案,在这种定义下模块和依赖项都能够异步地进行加载.它有很多独特的优势,包括天生的异步及高度灵活等特性,这些特性能够解除常见的代码与模块标识间的那种紧密耦合.目前它已经被很多项目所接纳,包括jQuery(1.7). RequireJS RequireJS是一个工具库,主

  • C#隐式运行CMD命令(隐藏命令窗口)

    本文实现了C#隐式运行CMD命令的功能.下图是实例程序的主画面.在命令文本框输入DOS命令,点击"Run"按钮,在下面的文本框中输出运行结果. 下面是程序的完整代码.本程序没有使用p.StandardOutput.ReadtoEnd()和p.StandardOutput.ReadLine()方法来获得输出,因为这些方法执行后画面容易卡死.而是通过调用异步方法BeginOutputReadLine来获取输出,并在事件p.OutputDataReceived的事件处理方法中来处理结果. u

  • JavaScript模块规范之AMD规范和CMD规范

    模块化是指在解决某一个复杂问题或者一系列的杂糅问题时,依照一种分类的思维把问题进行系统性的分解以之处理.模块化是一种处理复杂系统分解为代码结构更合理,可维护性更高的可管理的模块的方式.可以想象一个巨大的系统代码,被整合优化分割成逻辑性很强的模块时,对于软件是一种何等意义的存在.对于软件行业来说:解耦软件系统的复杂性,使得不管多么大的系统,也可以将管理,开发,维护变得"有理可循". 还有一些对于模块化一些专业的定义为:模块化是软件系统的属性,这个系统被分解为一组高内聚,低耦合的模块.那么

  • java执行windows下cmd命令的方法

    本文实例讲述了java执行windows下cmd命令的方法.分享给大家供大家参考. 具体实现代码如下: 复制代码 代码如下: //获取运行时 Runtime rt = Runtime.getRuntime(); //获取进程 Process p = rt.exec(String[] cmdarray);//或者 Process p = rt.exec(String cmd); //如果p不为空,那么要清空 if(null!=p){destory p.destory(); p=null; } 例如

  • Javascript模块化编程(一)AMD规范(规范使用模块)

    这个系列的第一部分介绍了Javascript模块的基本写法,今天介绍如何规范地使用模块.  (接上文) 七.模块的规范 先想一想,为什么模块很重要? 因为有了模块,我们就可以更方便地使用别人的代码,想要什么功能,就加载什么模块. 但是,这样做有一个前提,那就是大家必须以同样的方式编写模块,否则你有你的写法,我有我的写法,岂不是乱了套!考虑到Javascript模块现在还没有官方规范,这一点就更重要了. 目前,通行的Javascript模块规范共有两种:CommonJS和AMD.我主要介绍AMD,

随机推荐