Getting and using currect directory in c# script
<p>This is just a sample, but it will help illustrate what I'm trying to do.</p>

<p>I know how to get the current directory as shown in the script below, and I can can set a file <code>variable</code>.</p>

<p>The problem I'm having is that I can't figure out how to make it create a folder and put the file in the folder </p>

<p>For example (using the variables below)</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var cd = Directory.GetCurrentDirectory();
            Directory.CreateDirectory(cd: \5app\);
            File.Copy(c:\xyz.txt, cd: \5app\xyz.txt

        }
    }
}
</code></pre>

<p>I know what I have written above is not correct because vs10 tells me so, but doesn't give me very much help.</p>
