Skip to content

Instantly share code, notes, and snippets.

View zezo010's full-sized avatar

Crying W0lf zezo010

  • CyberHex
View GitHub Profile
@zezo010
zezo010 / FileDownloader.cs
Created June 1, 2018 11:53 — forked from yasirkula/FileDownloader.cs
C# Download Public File From Google Drive™ (works for large files as well)
using System;
using System.IO;
using System.Net;
public static class FileDownloader
{
private const string GOOGLE_DRIVE_DOMAIN = "drive.google.com";
private const string GOOGLE_DRIVE_DOMAIN2 = "https://drive.google.com";
// Normal example: FileDownloader.DownloadFileFromURLToPath( "http://example.com/file/download/link", @"C:\file.txt" );