Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark kraska committed Jan 28, 2021
1 parent 6e03c54 commit f18f3c7
Show file tree
Hide file tree
Showing 15 changed files with 3,066 additions and 0 deletions.
6 changes: 6 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
185 changes: 185 additions & 0 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System;
using System.IO;
using System.Diagnostics;
using System.Windows.Forms;

namespace Youtube_Downloader
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}

public void YTDL ()
{
string all = "youtube-dl.exe" + textBox1.Text + maskedTextBox1.Text + " -o " + maskedTextBox2.Text + "%(title)s.%(ext)s" + textBox1.Text;
var proc1 = new ProcessStartInfo();
proc1.UseShellExecute = true;
proc1.WorkingDirectory = @"C:\YT-DL\";
proc1.FileName = @"C:\Windows\System32\cmd.exe";
/// as admin = proc1.Verb = "runas";
proc1.Arguments = "/c " + all;
proc1.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(proc1);
}

private void button1_Click(object sender, EventArgs e)
{
YTDL();
}

private void button3_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.ShowDialog();
}
}
}
Loading

0 comments on commit f18f3c7

Please sign in to comment.