apostrophe in folder name

Jul 31, 2011 at 10:16 PM
Edited Jul 31, 2011 at 10: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.

Thanks!

Coordinator
Aug 5, 2011 at 5: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";
tf.CreateFolder(testFolder);
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());
sub.DeleteTask("MyTask");
tf.DeleteFolder(testFolder);