this program is downloading videos... -o to custom save location
var mainForm = Application.OpenForms.OfType<Form1>().Single();
string urlBoxText2 = mainForm.Controls["URL_BOX"].Text;
string text = "C:/Program Files/Sycho_DL/Downloader.exe -f 18 -o "C:\%(title)s.%(ext)s" ";
string me2me = text + urlBoxText2;
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"C:\Downloader.exe";
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.Arguments = me2me;
Process process = new Process();
process.StartInfo = startInfo;
process.Start();
process.WaitForExit();
- Look at string text...Gives this error
- why I can't put Double Quotes "" from start to end?
- Note: the code will work if I typed it in txt file and used File. ReadAllText
- I tried to make 'C:%(title)s.%(ext)s' with single quates but program won't download...