Forum > Coding >

Download Files From Web

xamel

Scripter

Posts: 125

Threads: 19

Joined: Sep, 2020

Reputation: 3

Posted

 WebClient web = new WebClient();

 web.DownloadFile("https://download941.mediafire.com/6xuiybki6a1g/5rizk22p1t6txdm/ez.txt", @"c:/ez.txt");

 

How does it work?:

It downloads a file you uploaded on mediafire.com or mega.nz

 

How do i do it?:

1. Upload a file on mega.nz or mediafire.com (I recommend mediafire.com)

2. Right click on the download button and press Copy link address

3. Paste the url

For example:

web.DownloadFile("url", @"c:/ez.txt");

 

4. Edit the path

For example:

web.DownloadFile("https://download941.mediafire.com/6xuiybki6a1g/5rizk22p1t6txdm/ez.txt", @"c:/lolez.txt");

WARNING: If its an exe file or dll file, edit the extension to .exe or .dll

 

 

 

 

 

  • 0

local info = {

[1] = "frel0#4458", [2] = "Scripter"

}

ecstacy_lxnny

fka as delta

contentCreator

Posts: 765

Threads: 70

Joined: May, 2021

Reputation: 95

Replied

Le me waiting for iMaximus to come and say

"For god sakes dispose the webclient"

  • 0

fka as delta

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@ecstacy_lxnny No maximus will tell you to use:

using (WebClient web = new WebClient())
{
    web.DownloadFile("https://download941.mediafire.com/6xuiybki6a1g/5rizk22p1t6txdm/ez.txt", @"c:/ez.txt");
}

It's probably the most proper way anyways 

  • 0

TERIHAX

i say im gay as a joke 🙀

Posts: 1791

Threads: 92

Joined: Jul, 2020

Reputation: 30

Replied

@63568 i use the same way, and btw dispose it, i like usings

  • 0

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Replied

God Thank You I Needed This

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Posts: 1659

Threads: 10

Joined: Sep, 2020

Reputation: 59

Replied

using (var web = new WebClient())
{
    web.DownloadFile("https://download941.mediafire.com/6xuiybki6a1g/5rizk22p1t6txdm/ez.txt", @"c:/ez.txt");
}
  • 0

Discord : Doctor Doom#0550

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )