您现在的位置是:网站首页> 编程资料编程资料
Powershell打印文本文档例子_PowerShell_
2023-05-26
350人已围观
简介 Powershell打印文本文档例子_PowerShell_
支持所有版本
从记事本打印一个文件,可以使用下列代码(需要替换成一个有意义的路径,否则将打印较长的系统日志):
复制代码 代码如下:
Start-Process -FilePath notepad -ArgumentList '/P C:\windows\WindowsUpdate.log'
相关内容
- Powershell访问SQL Server数据库代码实例_PowerShell_
- Powershell读取PFX证书并输入密码的脚本分享_PowerShell_
- Powershell改变脚本执行优先权的代码分享_PowerShell_
- Powershell实现导入安装证书功能脚本分享_PowerShell_
- Windows Powershell 定义函数_PowerShell_
- Windows Powershell Switch 循环_PowerShell_
- Windows Powershell For 循环_PowerShell_
- Powershell小技巧之使用WS-Man来调用PowerShell命令_PowerShell_
- 使用HTTP api简单的远程执行PowerShell脚本_PowerShell_
- Powershell小技巧之开启关闭远程连接_PowerShell_
