I have a .vbs file working perfectly, but only when I put it into the Debug folder. I want to get it from the Resources folder, so when the person executes the .exe file it will be there already. Any tips on how I can do this?
This is the piece of code I am using so far:
         Process scriptProc = new Process();
        //scriptProc.StartInfo.FileName = @"file.vbs";
        scriptProc.StartInfo.Arguments = path;
        MessageBox.Show(scriptProc.StartInfo.FileName = @config + ".vbs");
        scriptProc.Start();
        scriptProc.WaitForExit();
        scriptProc.Close();
 
     
    