I'm making a c# console .net framework application to open the file Error.vbs
, and I want to be able to choose the location of the started file's window on the desktop.
This is the code I have so far:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace ErrorRunner
{
internal class Program
{
static void Main(string[] args)
{
Process ExternalProcess = new Process();
ExternalProcess.StartInfo.FileName = @"C:\Users\video\Downloads\Error.vbs";
while (true)
{
ExternalProcess.Start();
}
}
}
}
How would I choose the start location of error.vbs?
(And yes, I know it might be a bad idea to start a process indefinitely, but that's the whole purpose of this program.)