This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mark kraska
committed
Jan 28, 2021
1 parent
6e03c54
commit f18f3c7
Showing
15 changed files
with
3,066 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
Oops, something went wrong.