Create greg.bat
This commit is contained in:
parent
043ab79732
commit
6da9b5037f
1 changed files with 14 additions and 0 deletions
14
greg.bat
Normal file
14
greg.bat
Normal file
|
@ -0,0 +1,14 @@
|
|||
@echo off
|
||||
setlocal
|
||||
set "imageUrl=https://f.feridinha.com/LqRkS.jpg"
|
||||
set "desktopPath=%USERPROFILE%\Desktop\greg.jpg"
|
||||
powershell -command "Invoke-WebRequest -Uri '%imageUrl%' -OutFile '%desktopPath%'"
|
||||
if exist "%desktopPath%" (
|
||||
for /L %%i in (1,1,0) do (
|
||||
copy "%desktopPath%" "%USERPROFILE%\Desktop\rowley_%%%%i.jpg"
|
||||
)
|
||||
) else (
|
||||
echo greg wasen't feeling well today :(.
|
||||
)
|
||||
echo greg in a box
|
||||
pause
|
Loading…
Reference in a new issue