Apr 1, 2017 11:45 PM
(This post was last modified: Apr 2, 2017 07:09 PM by ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™.)
Hello all ^-^
If you've been following my video tutorials, then you'll be happy to have a script that will download a copy of functions out of my pastebin for your use.
For those who haven't seen my videos, the script opens a link to my YouTube channel, and you will have a set of my functions, and a list of tutorials how to use them. Enjoy!
![[Image: b192ba673ff70fc1ff8aa2967a673f32.png]](https://gyazo.com/b192ba673ff70fc1ff8aa2967a673f32.png)
Save as *.bat
If you've been following my video tutorials, then you'll be happy to have a script that will download a copy of functions out of my pastebin for your use.
For those who haven't seen my videos, the script opens a link to my YouTube channel, and you will have a set of my functions, and a list of tutorials how to use them. Enjoy!
![[Image: b192ba673ff70fc1ff8aa2967a673f32.png]](https://gyazo.com/b192ba673ff70fc1ff8aa2967a673f32.png)
Save as *.bat
Code
@echo off & setlocal enableDelayedExpansion
call :init
echo.
echo To use these scripts, RIGHT-CLICK/COPY them from IckyScripts,
echo.
echo and PASTE into whatever script you're writting.
echo.
for /l %%0 in (1,1,%scripts%) do (
for /f "tokens=1,2" %%a in ("!script[%%~0]!") do (
set "pb=%%~b" & set "pb=!pb:~0,-1!"
if not exist %%~a.bat (
call :download "https://pastebin.com/raw/!pb!" "%%~a.bat" && (
echo Successfully downloaded %%~a
) || echo Error downloading %%~a
) else echo Already exists %%~a.bat
)
)
echo.
echo Thanks for downloading!
echo.
echo See my video tutorials on how to use them
echo.
echo https://www.youtube.com/channel/UCUy4yFeuVZv7kxc2q86yQZA
echo.
start https://www.youtube.com/channel/UCUy4yFeuVZv7kxc2q86yQZA
pause & exit
:init
mode 80,40
echo.
echo Downloading to %userprofile%\desktop\ickyScripts
if not exist "%userprofile%\desktop\ickyScripts" md "%userprofile%\desktop\ickyScripts"
cd %userprofile%\desktop\ickyScripts
for %%a in ("canvas MTKPhpCY"
"mathMacros R0BNdSWR"
"plot tmYcfTFH"
"circle hEW9wmEJ"
"plotLine QfPcDDN4"
"rect tCiuhJYJ"
"ellipse jd38Kx1m"
"print ae1djBvf"
"cursorpos 9X24yL8b"
"cMouse Wp78VjX7"
"swap idiFAEj7"
"length 8vnTsQxr") do (
set /a "scripts+=1"
set "script[!scripts!]=%%a"
)
goto :eof
:Download <url> <File>
Powershell.exe -command "(New-Object System.Net.WebClient).DownloadFile('%1','%2')"
goto :eof


