.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.

此问题已关闭。

提问:

2014-4-29

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by