首页> 外文期刊>Windows IT Pro >Use PowerShell's Test-Path to Check Variables and Much More
【24h】

Use PowerShell's Test-Path to Check Variables and Much More

机译:使用PowerShell测试路径检查变量以及更多其他内容

获取原文
获取原文并翻译 | 示例
           

摘要

Determining whether a variable exists before attempting to use it is helpful when writing scripts. However, if you look at the PowerShell cmdlets, you won't find a cmdlet devoted solely to this task. The reason is that PowerShell doesn't need one. It already has a more general cmdlet named Test-Path that does this as well as several other tasks.
机译:编写脚本之前,先确定变量是否存在,然后再尝试使用它。但是,如果您查看PowerShell cmdlet,则不会找到专门用于此任务的cmdlet。原因是PowerShell不需要一个。它已经具有一个更通用的名为Test-Path的cmdlet,它可以执行此操作以及其他一些任务。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号