Using System.IO.FileSystem.Watcher
I want to monitor a folder for changes and FileSystemWatcher looks like what I need, but I'm having trouble bringing it into my project.
I was able to bring the exact library in via Project Properties CLR GAC, but I'm having trouble bringing it up in my project.
I can only get this far:
dotNET.System_IO.
Is this even possilbe?
Here's the FileSystemWatcher page from Microsoft.
https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=netframework-4.7.2
Any help would be much appreciated,
Rob
TestComplete has, built into it, objects for checking folder contents and such. Look into the aqFileSystem object and associated methods.
Basically, you can set up a while loop using methods from there to check to see if a file is present. As long as the file is not there, the loop continues. That's what I would do.Documentation found at
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfilesystem/index.html