如何验证特定文件路径是否存在?
1、打开Windows Powershell程序窗口;

2、在Powershell程序中输入 Test-Path ;

3、输入路径指明参数 -Path ;

4、输入要验证的路径;

5、点击回车后,返回True说明该路径存在;

6、如果验证的路径不存在则返回 False 。

阅读量:70
阅读量:37
阅读量:45
阅读量:132
阅读量:119
1、打开Windows Powershell程序窗口;

2、在Powershell程序中输入 Test-Path ;

3、输入路径指明参数 -Path ;

4、输入要验证的路径;

5、点击回车后,返回True说明该路径存在;

6、如果验证的路径不存在则返回 False 。
