How to verify if a file exists using InTouch scripting
Last updated: March 3rd, 2025Description
- Author: Benjamin Davis
- Published: March 3rd, 2025
Details:
Description
This article from InSource shows how to verify if a file exists using InTouch scripting
- Author: Benjamin Davis
- Published: 04/28/2016
- Applies to: InTouch
Details
Use the InTouch InfoFile() function to verify if a file exist using InTouch scripting.
For example, the script DiscreteTag = InfoFile("C:\Stuff\HelloWorld.txt",1,$minute); will look in the Stuff folder located on the C drive for a file called HelloWorld.txt.
If the file exist, it will change DiscreteTag to 1. If it does not exist, it will change DiscreteTag to 0.