.NET functionality in a compiled script

I am using "System.IO.FileSystemWatcher" along with "addlistener" to monitor a directory and then execute a function when a new file appears. This works as intended when the GUI tool is run from Matlab. However, when I compile the tool it no longer works. The compiler does not give any error messages, nor does the tool.
Is the .NET functionality not available in a compiled matlab tool, or do I need to include something extra when compiling? Any advice is appreciated.

This question is closed.

Products

Asked:

on 29 Apr 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!