Differences
This shows you the differences between the selected revisions of the page.
2016-03-02 | 2016-03-07 | ||
exit the batch file only (martin) | library_session_getfiles#example => library_example_check_existence_timestamp + fixing vblink on the way (martin) | ||
Line 59: | Line 59: | ||
===== [[local]] Local file existence ===== | ===== [[local]] Local file existence ===== | ||
- | * In [[library_powershell|PowerShell]], use ''[[https://technet.microsoft.com/en-us/library/hh849776.aspx|Test-Path]]'' cmdlet. See [[library_session_getfiles#powershell|example]]. | + | * In [[library_powershell|PowerShell]], use ''[[https://technet.microsoft.com/en-us/library/hh849776.aspx|Test-Path]]'' cmdlet. See an example in [[library_example_check_existence_timestamp#powershell|Checking file existence and timestamp]]. |
* In a batch file, use ''[[https://technet.microsoft.com/en-us/library/cc754335.aspx|if exist]]'' command. See [[guide_automation_conditional#scripting|example]]. | * In a batch file, use ''[[https://technet.microsoft.com/en-us/library/cc754335.aspx|if exist]]'' command. See [[guide_automation_conditional#scripting|example]]. | ||
- | * In .NET, use ''[[https://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx|File.Exists]]'' method. See [[library_session_getfiles#csharp|C#]] and [[library_session_getfiles#vbnet|VB.NET]] example. | + | * In .NET, use ''[[https://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx|File.Exists]]'' method. See [[library_example_check_existence_timestamp#csharp|C#]] and [[library_example_check_existence_timestamp#vbnet|VB.NET]] example in [[library_example_check_existence_timestamp|Checking file existence and timestamp]]. |
- | * In WSH, use ''[[https://msdn.microsoft.com/en-us/library/x23stk5t.aspx|Scripting.FileSystemObject.FileExists]]'' method. See [[library_session_getfiles#jscript|JScript]] and [[library_session_getfiles#jscript|VBScript]] example. | + | * In WSH, use ''[[https://msdn.microsoft.com/en-us/library/x23stk5t.aspx|Scripting.FileSystemObject.FileExists]]'' method. See [[library_example_check_existence_timestamp#jscript|JScript]] and [[library_example_check_existence_timestamp#vbscript|VBScript]] example in [[library_example_check_existence_timestamp|Checking file existence and timestamp]]. |
===== Further Reading ===== | ===== Further Reading ===== |