Code: Select all
@ECHO OFF
Color 1F
SET Hr=%Time:~0,2%
SET Min=%Time:~3,2%
IF %Hr%==7 (
IF %Min% LEQ 20 (
TITLE "Despierta Mierr...!"
ECHO.
ECHO =========================
ECHO.
ECHO .:- Buenos D¡as -:.
ECHO.
ECHO =========================
ECHO.
ECHO.
ECHO =========================
ECHO.
ECHO Son las %Hr%:%Min% del %Date%
ECHO.
ECHO =========================
ECHO.
ECHO.
CD /D "D:\Otros\Batch Files\"
"C:\Archivos de Programa\iTunes\Scripts\Minimitunes.vbs" | "D:\Music\Green Day\Good Riddance.mp3" | CALL "Mornin.bat" | "C:\Archivos de Programa\Lock My PC 4\LockPC.exe" /LOCK
EXIT
)
) ELSE (
TITLE "Welcome"
ECHO.
ECHO.
ECHO ==================
ECHO.
ECHO .:- Bienvenido -:.
ECHO.
ECHO ==================
ECHO.
ECHO.
CD "C:\Archivos de Programa\Lock My PC 4\"
LockPC.exe /LOCK
PAUSE>NUL
EXIT
)
When the time comes to Call Mornin'.bat, it says "Didn't expect ( at this moment" or something (As you might have realized, my first language is spanish). Yet if i execute the "Mornin'.bat" on it's own, it works perfectly.
Mornin.bat:
Code: Select all
SET /P R=""
IF /i %R%==Mornin (
CLS
ECHO Oh it's you, Mr. Vicente! Here, let me open the browser for you.
PAUSE>NUL
EXIT | "C:\Archivos de programa\Google\Chrome\Application\chrome.exe" /MAX
) Else (
PAUSE>NUL
EXIT
)
PLEASE HELP MEE