I have created an app that will open a File from a server in Word. I am truying to use filewatcher to determine when to post changed word document back to server. But Microsoft changes the filenames and I have no way to know which temp file name corresponds with my original filename.
Any help would be greatly appreciated.
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Path = path;
watcher.Filter = "*.*";
watcher.Changed += new FileSystemEventHandler(OnChanged);
watcher.Deleted += new FileSystemEventHandler(OnChanged);
watcher.Created += new FileSystemEventHandler(OnChanged);
watcher.EnableRaisingEvents = true;
What I am actually looking for is a way to edit files through my application in Word. Kind of like Sharepoint Online.