Paso 1: Crear el código de
Crear el código.
off if not exist "%USERPROFILE%\Logs" mkdir "%USERPROFILE%\Logs" echo %USERPROFILE%\Logs\batchlog.txt echo "Logged at %time%, %date%, by %USERNAME%" >> %USERPROFILE%\Logs\batchlog > usermessage.vbs ECHO WScript.Echo( "Logged succesfully by %UserName%" ) WSCRIPT.EXE usermessage.vbs DEL usermessage.vbs Si no existen '% USERPROFILE%\Logs' mkdir '% USERPROFILE%\Logs' Eco eco %USERPROFILE%\Logs\batchlog.txt "Conectado en tiempo % fecha % por % USERNAME %" >> %USERPROFILE%\Logs\batchlog > usermessage.vbs ECHO WScript.Echo ("conectado con éxito por % UserName %") WSCRIPT. EXE usermessage.vbs off if not exist "%USERPROFILE%\Logs" mkdir "%USERPROFILE%\Logs" echo %USERPROFILE%\Logs\batchlog.txt echo "Logged at %time%, %date%, by %USERNAME%" >> %USERPROFILE%\Logs\batchlog > usermessage.vbs ECHO WScript.Echo( "Logged succesfully by %UserName%" ) WSCRIPT.EXE usermessage.vbs DEL usermessage.vbs
Es el código por defecto. Pegue en Bloc de notas y pasar a: