您现在的位置是:网站首页> 编程资料编程资料
PowerShell中的转义字符是什么?_PowerShell_
2023-05-26
354人已围观
简介 PowerShell中的转义字符是什么?_PowerShell_
PowerShell中转义字符是`,向后撇号(backward apostrophe,是tab键上面的按键,不是单引号),例如:
复制代码 代码如下:
Write-Host `$env:processor_architecture=$env:processor_architecture
会输出$env:processor_architecture=AMD64
当然还有一个转义字符是在正则表达式(Regular Expression)中使用的\,斜线。
相关内容
- PowerShell批量文件重命名操作实例_PowerShell_
- PowerShell中以管理员权限启动应用程序的方法_PowerShell_
- PowerShell中的函数重载示例_PowerShell_
- PowerShell中获取当前运行脚本路径的方法_PowerShell_
- PowerShell中使用.NET将程序集加入全局程序集缓存_PowerShell_
- PowerShell实现参数互斥示例_PowerShell_
- PowerShell实现动态获取当前脚本运行时消耗的内存_PowerShell_
- PowerShell Continue语句使用示例_PowerShell_
- PowerShell实现按条件终止管道的方法_PowerShell_
- Powershell互斥参数使用实例_PowerShell_
