In .NET i am writing
Directory.CreateDirectory(textBox4.Text);
textBox4.Text is ~/myfolder
. What i get is a folder in the current working directory called ~ with myfolder in it. How do i have CreateDirectory create myfolder at the user's home?