c# - Invoking a method when Windows Explorer opens a given folder -
i want execute c# method when user opens folder in windows explorer.
how such thing?
i not sure do/try,
have c# programme starts on logon open c# application on log on or have programme running in way , utilize filesystemwatcher class can create utilize of lastaccess notify filter , have c# code executed .
// create new filesystemwatcher , set properties. filesystemwatcher watcher = new filesystemwatcher(); watcher.path = "folder path"; /* watch changes in lastaccess , lastwrite times, , renaming of files or directories. */ watcher.notifyfilter = notifyfilters.lastaccess; // add together event handler
hope helps.
c# events folder windows-explorer
No comments:
Post a Comment