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

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

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

4、输入要验证的路径;

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

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

阅读量:187
阅读量:166
阅读量:74
阅读量:124
阅读量:180
1、打开Windows Powershell程序窗口;

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

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

4、输入要验证的路径;

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

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