public void StartMonitor(string path) { FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = path; watcher.NotifyFilter = NotifyFilters.FileName; // Only watch pdf files. watcher.Filter = "*.pdf"; watcher.Created += new FileSystemEventHandler(OnChanged); watcher.EnableRaisingEvents = true; } // Event handler for when a file is created in the watched folder private void OnChanged(object source, FileSystemEventArgs e) { string word = DocumentUtility.ConvertPdfToDoc(e.FullPath); } //csharp/196