Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = InputBox('Get Direct Link Google Drive', 'Type your file url')
- If @error Then Exit
- $DirectLink = GetDirectLinkGoogleDrive($url)
- InputBox('Get Direct Link Google Drive', 'Your Direct Link is :', $DirectLink)
- Func GetDirectLinkGoogleDrive($url)
- If StringInStr($url, 'folders') Then
- MsgBox(16, 'Error', 'Not Support Folder Url')
- Exit
- EndIf
- $KQ = StringRegExp($url, '[-\w]{25,}', 1)
- Return 'https://drive.google.com/uc?export=download&id=' & $KQ[0]
- EndFunc ;==>GetDirectLinkGoogleDrive
Add Comment
Please, Sign In to add comment