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

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

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

4、输入要验证的路径;

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

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

阅读量:30
阅读量:103
阅读量:76
阅读量:105
阅读量:39
1、打开Windows Powershell程序窗口;

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

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

4、输入要验证的路径;

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

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