One piece,是真正存在的。

此博客停更,新地址传送门:Yuanjie

Powershell-入门

 

Get-Content .\a.txt
dir
      • “Get-Content .\a.txt”:获取当前目录中a.txt的文件内容并回显,Powershell脚本
      • "dir": 打印当前目录中的文件列表,DOS脚本
      • 保存文件为“a.ps1”:ps1为Powershell的保存文件格式

 

  • 执行Powershell
    • 进入Powershell
    • 进入"a.ps1"的本机存放目录
    • 输入“.\a.ps1”,回车
    • 脚本执行成功
  • 问题
    • 执行过程中出现:PSSecurityException
      • Set-ExecutionPolicy UnRestricted

posted on 2015-07-22 17:18  One|Piece  阅读(416)  评论(0编辑  收藏  举报

导航