This project has moved and is read-only. For the latest updates, please go here.

apostrophe in folder name

Jul 31, 2011 at 11:16 PM
Edited Jul 31, 2011 at 11:17 PM

I have a folder in my structure called Chris' Tasks.
It existed before I found your DLL.
I can't seem to get the tasks out of it.
GetFolder seems to work, but foreaching it's tasks comes up blank.

This is where my rename a folder question stemmed from, I realized later, I should bring this to your attention.


Aug 5, 2011 at 6:36 PM

I just tested this under Win7 and found I was able to create a folder named "Chris' Tasks", add tasks to it, enumerate those tasks, remove those tasks, and then delete the folder. Below is the code:

const string testFolder = "Chris' Tasks";
TaskFolder sub = tf.SubFolders[testFolder];
output.WriteLine("\nSubfolder path: " + sub.Path);
ts.AddTask(testFolder + @"\MyTask", new LogonTrigger(), new ExecAction("notepad"));
output.WriteLine(" - Tasks: " + sub.Tasks.Count.ToString());