Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Application Server
  • AVEVA Application Server Tech Notes

TN AppSvr197 How to verify if a file exists using Application Server scripting

Last updated: March 3rd, 2025

Description

  • Author: Benjamin Davis
  • Published: March 3rd, 2025

Details:

Description

This article from InSource shows how to verify if a file exists using Application Server scripting

  • Author: Benjamin Davis
  • Published: 04/28/2016
  • Applies to: Application Server

Details

Use the .NET System.IO.File.Exists method to verify if a file exist using Application Server scripting.

For example,

If System.IO.File.Exists("C:\Stuff\HelloWorld.txt") Then
Me.xxx = True;
Else
Me.xxx = False;
EndIf;

The script will look in the Stuff folder located on the C drive for a file called HelloWorld.txt.

If the file exist, it will change the attribute xxx to 1. If it does not exist, it will change attribute to 1,

 

validate file detect file
Give feedback about this article

Recommended articles

TN - 1240 Creating a Watchlist Using an Import File

Read More

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand