Hey, folks!
So, I’m attempting to do something simple – make a directory in my F:\ drive. But when I run the scene, it merely opens a DOS window – it doesn’t actually create the directory. The reason I’m confused is because if I open the cmd window myself, and type the same thing, then it does create the folder – but it won’t work from within unity. Am I doing something wrong? Here’s my script:
using UnityEngine;
using System.Collections;
public class CommandLineTest : MonoBehaviour {
// Use this for initialization
void Start () {
string strCmdText;
strCmdText= @"c/ mkdir \kittens";
System.Diagnostics.Process.Start("CMD.exe",strCmdText);
}
}