elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Únete al Grupo Steam elhacker.NET


+  Foro de elhacker.net
|-+  Sistemas Operativos
| |-+  Windows (Moderador: Randomize)
| | |-+  Ejecutar un archivo reg al iniciar la sesión
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] Ir Abajo Respuesta Imprimir
Autor Tema: Ejecutar un archivo reg al iniciar la sesión  (Leído 1,735 veces)
zelarra

Desconectado Desconectado

Mensajes: 54


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #10 en: 17 Septiembre 2024, 22:59 pm »

A ver, estoy haciendo pruebas.

Como te digo, he añadido al final del archivo reg esto:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SecurityHealth"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,\
  73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,65,00,63,00,75,\
  00,72,00,69,00,74,00,79,00,48,00,65,00,61,00,6c,00,74,00,68,00,53,00,79,00,\
  73,00,74,00,72,00,61,00,79,00,2e,00,65,00,78,00,65,00,00,00
"RtkAudUService"="\"C:\\Windows\\System32\\RtkAudUService64.exe\" -background"
"PDF24"="\"C:\\Program Files\\PDF24\\pdf24.exe\""
"Claves1"=""

De manera que me creé ese Claves1 para saber si está ejecutando el archivo o no.

Esa Clave1 me aparece si lo ejecuto yo manualmente, pero si reinicio el ordenador no aparece.

No sé de qué manera puedo comprobar si está funcionando o no.


En línea

MCKSys Argentina
Moderador Global
***
Desconectado Desconectado

Mensajes: 5.505


Diviértete crackeando, que para eso estamos!


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #11 en: 18 Septiembre 2024, 06:32 am »

Hola!

Para evitar darle más vueltas: Bájate la tool de nirsoft WhatInStartup: https://www.nirsoft.net/utils/whatinstartup-x64.zip

Bájalo, extráelo y ejecútalo como administrador. Luego presiona CTRL+N, en "Item Type" seleciona "Registry -> User Run", en "Item Name" ingresa "Claves", en "Process Path" selecciona el path a reg.exe ("C:\Windows\System32\reg.exe") y el "parameters" agrega los parámetros que le pasas a reg.exe: import "d:\bandeja de entrada\Prueba.reg"

Al hacer click en "OK", se debería crear una entrada en HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run con el nombre que colocaste, la cual se ejecutará al iniciar el sistema.

Saludos!


En línea

MCKSys Argentina

"Si piensas que algo está bien sólo porque todo el mundo lo cree, no estás pensando."

zelarra

Desconectado Desconectado

Mensajes: 54


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #12 en: 18 Septiembre 2024, 08:59 am »

vale, ya lo tengo funcionando.

una última cosa:

sé que hay un listado de parámetros, como -s, -v..., que uno de ellos sirve para que se ejecute sin que se vea la lista de comandos.

¿conoces el parámetro qué de añadir y en qué parte?

¿sabes dónde puedo encontrar esa lista?

muchas gracias por la ayuda y la paciencia.

saludos.
En línea

zelarra

Desconectado Desconectado

Mensajes: 54


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #13 en: 18 Septiembre 2024, 09:14 am »

Tengo apuntado en una guía que el parámetro al que me refiero es /F, pero no estoy seguro ni si es correcto, ni dónde he de colocarlo, pues en el ejemplo que digo aparece al final.

De ahí que quiero saber eso, además de la lista.

Nada, que darte las gracias.

Saludos.
En línea

Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.842



Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #14 en: 18 Septiembre 2024, 10:52 am »

Tengo que utilizar un archivo reg porque son muchas entradas a modificar en el registro.

Tu script de Registro de Windows, convertido a batch-script:

Código
  1. :: Converted with Reg2Bat v2.5.0 by ElektroStudios
  2.  
  3. @Echo OFF
  4. REG DELETE "HKCR\SystemFileAssociations\.3g2\shell\Convert with Freemake" /F 1>NUL 2>&1
  5. REG ADD "HKCR\SystemFileAssociations\.3g2\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  6. REG DELETE "HKCR\SystemFileAssociations\.3gp\shell\Convert with Freemake" /F 1>NUL 2>&1
  7. REG ADD "HKCR\SystemFileAssociations\.3gp\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  8. REG DELETE "HKCR\SystemFileAssociations\.3gp2\shell\Convert with Freemake" /F 1>NUL 2>&1
  9. REG ADD "HKCR\SystemFileAssociations\.3gp2\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  10. REG DELETE "HKCR\SystemFileAssociations\.3gpp\shell\Convert with Freemake" /F 1>NUL 2>&1
  11. REG ADD "HKCR\SystemFileAssociations\.3gpp\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  12. REG DELETE "HKCR\SystemFileAssociations\.aac\shell\Convert with Freemake" /F 1>NUL 2>&1
  13. REG ADD "HKCR\SystemFileAssociations\.aac\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  14. REG DELETE "HKCR\SystemFileAssociations\.ac3\shell\Convert with Freemake" /F 1>NUL 2>&1
  15. REG ADD "HKCR\SystemFileAssociations\.ac3\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  16. REG DELETE "HKCR\SystemFileAssociations\.adts\shell\Convert with Freemake" /F 1>NUL 2>&1
  17. REG ADD "HKCR\SystemFileAssociations\.adts\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  18. REG DELETE "HKCR\SystemFileAssociations\.aif\shell\Convert with Freemake" /F 1>NUL 2>&1
  19. REG ADD "HKCR\SystemFileAssociations\.aif\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  20. REG DELETE "HKCR\SystemFileAssociations\.aifc\shell\Convert with Freemake" /F 1>NUL 2>&1
  21. REG ADD "HKCR\SystemFileAssociations\.aifc\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  22. REG DELETE "HKCR\SystemFileAssociations\.aiff\shell\Convert with Freemake" /F 1>NUL 2>&1
  23. REG ADD "HKCR\SystemFileAssociations\.aiff\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  24. REG DELETE "HKCR\SystemFileAssociations\.alaw\shell\Convert with Freemake" /F 1>NUL 2>&1
  25. REG ADD "HKCR\SystemFileAssociations\.alaw\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  26. REG DELETE "HKCR\SystemFileAssociations\.amr\shell\Convert with Freemake" /F 1>NUL 2>&1
  27. REG ADD "HKCR\SystemFileAssociations\.amr\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  28. REG DELETE "HKCR\SystemFileAssociations\.amv\shell\Convert with Freemake" /F 1>NUL 2>&1
  29. REG ADD "HKCR\SystemFileAssociations\.amv\shell\Convert with Freemake" /V "Icon" /T "REG_SZ" /D "%ProgramFiles(x86)%\Freemake\Freemake Video Converter\Uninstall\logo.ico" /F 1>NUL 2>&1
  30. REG DELETE "HKCR\SystemFileAssociations\.anm\shell\Convert with Freemake" /F 1>NUL 2>&1
  31. REG DELETE "HKCR\SystemFileAssociations\.apc\shell\Convert with Freemake" /F 1>NUL 2>&1
  32. REG DELETE "HKCR\SystemFileAssociations\.ape\shell\Convert with Freemake" /F 1>NUL 2>&1
  33. REG DELETE "HKCR\SystemFileAssociations\.asf\shell\Convert with Freemake" /F 1>NUL 2>&1
  34. REG DELETE "HKCR\SystemFileAssociations\.au\shell\Convert with Freemake" /F 1>NUL 2>&1
  35. REG DELETE "HKCR\SystemFileAssociations\.avi\shell\Convert with Freemake" /F 1>NUL 2>&1
  36. REG DELETE "HKCR\SystemFileAssociations\.avs\shell\Convert with Freemake" /F 1>NUL 2>&1
  37. REG DELETE "HKCR\SystemFileAssociations\.bik\shell\Convert with Freemake" /F 1>NUL 2>&1
  38. REG DELETE "HKCR\SystemFileAssociations\.bmp\Shell\Convert with Freemake" /F 1>NUL 2>&1
  39. REG DELETE "HKCR\SystemFileAssociations\.bnk\shell\Convert with Freemake" /F 1>NUL 2>&1
  40. REG DELETE "HKCR\SystemFileAssociations\.caf\shell\Convert with Freemake" /F 1>NUL 2>&1
  41. REG DELETE "HKCR\SystemFileAssociations\.cavs\shell\Convert with Freemake" /F 1>NUL 2>&1
  42. REG DELETE "HKCR\SystemFileAssociations\.cdg\shell\Convert with Freemake" /F 1>NUL 2>&1
  43. REG DELETE "HKCR\SystemFileAssociations\.dpg\shell\Convert with Freemake" /F 1>NUL 2>&1
  44. REG DELETE "HKCR\SystemFileAssociations\.dpx\shell\Convert with Freemake" /F 1>NUL 2>&1
  45. REG DELETE "HKCR\SystemFileAssociations\.drc\shell\Convert with Freemake" /F 1>NUL 2>&1
  46. REG DELETE "HKCR\SystemFileAssociations\.dsm\shell\Convert with Freemake" /F 1>NUL 2>&1
  47. REG DELETE "HKCR\SystemFileAssociations\.dts\shell\Convert with Freemake" /F 1>NUL 2>&1
  48. REG DELETE "HKCR\SystemFileAssociations\.dv1394\shell\Convert with Freemake" /F 1>NUL 2>&1
  49. REG DELETE "HKCR\SystemFileAssociations\.dxa\shell\Convert with Freemake" /F 1>NUL 2>&1
  50. REG DELETE "HKCR\SystemFileAssociations\.ea\shell\Convert with Freemake" /F 1>NUL 2>&1
  51. REG DELETE "HKCR\SystemFileAssociations\.f4a\shell\Convert with Freemake" /F 1>NUL 2>&1
  52. REG DELETE "HKCR\SystemFileAssociations\.f4b\shell\Convert with Freemake" /F 1>NUL 2>&1
  53. REG DELETE "HKCR\SystemFileAssociations\.f4p\shell\Convert with Freemake" /F 1>NUL 2>&1
  54. REG DELETE "HKCR\SystemFileAssociations\.f4v\shell\Convert with Freemake" /F 1>NUL 2>&1
  55. REG DELETE "HKCR\SystemFileAssociations\.ffm\shell\Convert with Freemake" /F 1>NUL 2>&1
  56. REG DELETE "HKCR\SystemFileAssociations\.film\shell\Convert with Freemake" /F 1>NUL 2>&1
  57. REG DELETE "HKCR\SystemFileAssociations\.film_cpk\shell\Convert with Freemake" /F 1>NUL 2>&1
  58. REG DELETE "HKCR\SystemFileAssociations\.flac\shell\Convert with Freemake" /F 1>NUL 2>&1
  59. REG DELETE "HKCR\SystemFileAssociations\.flc\shell\Convert with Freemake" /F 1>NUL 2>&1
  60. REG DELETE "HKCR\SystemFileAssociations\.flh\shell\Convert with Freemake" /F 1>NUL 2>&1
  61. REG DELETE "HKCR\SystemFileAssociations\.fli\shell\Convert with Freemake" /F 1>NUL 2>&1
  62. REG DELETE "HKCR\SystemFileAssociations\.flm\shell\Convert with Freemake" /F 1>NUL 2>&1
  63. REG DELETE "HKCR\SystemFileAssociations\.flt\shell\Convert with Freemake" /F 1>NUL 2>&1
  64. REG DELETE "HKCR\SystemFileAssociations\.flv\shell\Convert with Freemake" /F 1>NUL 2>&1
  65. REG DELETE "HKCR\SystemFileAssociations\.flx\shell\Convert with Freemake" /F 1>NUL 2>&1
  66. REG DELETE "HKCR\SystemFileAssociations\.gif\Shell\Convert with Freemake" /F 1>NUL 2>&1
  67. REG DELETE "HKCR\SystemFileAssociations\.gsd\shell\Convert with Freemake" /F 1>NUL 2>&1
  68. REG DELETE "HKCR\SystemFileAssociations\.gsm\shell\Convert with Freemake" /F 1>NUL 2>&1
  69. REG DELETE "HKCR\SystemFileAssociations\.gxf\shell\Convert with Freemake" /F 1>NUL 2>&1
  70. REG DELETE "HKCR\SystemFileAssociations\.h261\shell\Convert with Freemake" /F 1>NUL 2>&1
  71. REG DELETE "HKCR\SystemFileAssociations\.h263\shell\Convert with Freemake" /F 1>NUL 2>&1
  72. REG DELETE "HKCR\SystemFileAssociations\.h264\shell\Convert with Freemake" /F 1>NUL 2>&1
  73. REG DELETE "HKCR\SystemFileAssociations\.ifo\shell\Convert with Freemake" /F 1>NUL 2>&1
  74. REG DELETE "HKCR\SystemFileAssociations\.ivr\shell\Convert with Freemake" /F 1>NUL 2>&1
  75. REG DELETE "HKCR\SystemFileAssociations\.jpeg\Shell\Convert with Freemake" /F 1>NUL 2>&1
  76. REG DELETE "HKCR\SystemFileAssociations\.jpg\Shell\Convert with Freemake" /F 1>NUL 2>&1
  77. REG DELETE "HKCR\SystemFileAssociations\.m2a\shell\Convert with Freemake" /F 1>NUL 2>&1
  78. REG DELETE "HKCR\SystemFileAssociations\.m2t\shell\Convert with Freemake" /F 1>NUL 2>&1
  79. REG DELETE "HKCR\SystemFileAssociations\.m2ts\shell\Convert with Freemake" /F 1>NUL 2>&1
  80. REG DELETE "HKCR\SystemFileAssociations\.m2v\shell\Convert with Freemake" /F 1>NUL 2>&1
  81. REG DELETE "HKCR\SystemFileAssociations\.m4a\shell\Convert with Freemake" /F 1>NUL 2>&1
  82. REG DELETE "HKCR\SystemFileAssociations\.m4p\shell\Convert with Freemake" /F 1>NUL 2>&1
  83. REG DELETE "HKCR\SystemFileAssociations\.m4r\shell\Convert with Freemake" /F 1>NUL 2>&1
  84. REG DELETE "HKCR\SystemFileAssociations\.m4v\shell\Convert with Freemake" /F 1>NUL 2>&1
  85. REG DELETE "HKCR\SystemFileAssociations\.mj2\shell\Convert with Freemake" /F 1>NUL 2>&1
  86. REG DELETE "HKCR\SystemFileAssociations\.mjpg\shell\Convert with Freemake" /F 1>NUL 2>&1
  87. REG DELETE "HKCR\SystemFileAssociations\.mka\shell\Convert with Freemake" /F 1>NUL 2>&1
  88. REG DELETE "HKCR\SystemFileAssociations\.mkm\shell\Convert with Freemake" /F 1>NUL 2>&1
  89. REG DELETE "HKCR\SystemFileAssociations\.mkv\shell\Convert with Freemake" /F 1>NUL 2>&1
  90. REG DELETE "HKCR\SystemFileAssociations\.mlp\shell\Convert with Freemake" /F 1>NUL 2>&1
  91. REG DELETE "HKCR\SystemFileAssociations\.mmf\shell\Convert with Freemake" /F 1>NUL 2>&1
  92. REG DELETE "HKCR\SystemFileAssociations\.mov\shell\Convert with Freemake" /F 1>NUL 2>&1
  93. REG DELETE "HKCR\SystemFileAssociations\.mp\shell\Convert with Freemake" /F 1>NUL 2>&1
  94. REG DELETE "HKCR\SystemFileAssociations\.mp+\shell\Convert with Freemake" /F 1>NUL 2>&1
  95. REG DELETE "HKCR\SystemFileAssociations\.mp1\shell\Convert with Freemake" /F 1>NUL 2>&1
  96. REG DELETE "HKCR\SystemFileAssociations\.mp2\shell\Convert with Freemake" /F 1>NUL 2>&1
  97. REG DELETE "HKCR\SystemFileAssociations\.mp3\shell\Convert with Freemake" /F 1>NUL 2>&1
  98. REG DELETE "HKCR\SystemFileAssociations\.mp4\shell\Convert with Freemake" /F 1>NUL 2>&1
  99. REG DELETE "HKCR\SystemFileAssociations\.mpc\shell\Convert with Freemake" /F 1>NUL 2>&1
  100. REG DELETE "HKCR\SystemFileAssociations\.mpe\shell\Convert with Freemake" /F 1>NUL 2>&1
  101. REG DELETE "HKCR\SystemFileAssociations\.mpeg\shell\Convert with Freemake" /F 1>NUL 2>&1
  102. REG DELETE "HKCR\SystemFileAssociations\.mpeg3\shell\Convert with Freemake" /F 1>NUL 2>&1
  103. REG DELETE "HKCR\SystemFileAssociations\.mpg\shell\Convert with Freemake" /F 1>NUL 2>&1
  104. REG DELETE "HKCR\SystemFileAssociations\.mpv\shell\Convert with Freemake" /F 1>NUL 2>&1
  105. REG DELETE "HKCR\SystemFileAssociations\.mts\shell\Convert with Freemake" /F 1>NUL 2>&1
  106. REG DELETE "HKCR\SystemFileAssociations\.mtv\shell\Convert with Freemake" /F 1>NUL 2>&1
  107. REG DELETE "HKCR\SystemFileAssociations\.mxf\shell\Convert with Freemake" /F 1>NUL 2>&1
  108. REG DELETE "HKCR\SystemFileAssociations\.nc\shell\Convert with Freemake" /F 1>NUL 2>&1
  109. REG DELETE "HKCR\SystemFileAssociations\.nsv\shell\Convert with Freemake" /F 1>NUL 2>&1
  110. REG DELETE "HKCR\SystemFileAssociations\.nut\shell\Convert with Freemake" /F 1>NUL 2>&1
  111. REG DELETE "HKCR\SystemFileAssociations\.nuv\shell\Convert with Freemake" /F 1>NUL 2>&1
  112. REG DELETE "HKCR\SystemFileAssociations\.ogg\shell\Convert with Freemake" /F 1>NUL 2>&1
  113. REG DELETE "HKCR\SystemFileAssociations\.ogm\shell\Convert with Freemake" /F 1>NUL 2>&1
  114. REG DELETE "HKCR\SystemFileAssociations\.ogv\shell\Convert with Freemake" /F 1>NUL 2>&1
  115. REG DELETE "HKCR\SystemFileAssociations\.oma\shell\Convert with Freemake" /F 1>NUL 2>&1
  116. REG DELETE "HKCR\SystemFileAssociations\.pam\shell\Convert with Freemake" /F 1>NUL 2>&1
  117. REG DELETE "HKCR\SystemFileAssociations\.pbm\shell\Convert with Freemake" /F 1>NUL 2>&1
  118. REG DELETE "HKCR\SystemFileAssociations\.pcx\shell\Convert with Freemake" /F 1>NUL 2>&1
  119. REG DELETE "HKCR\SystemFileAssociations\.pgm\shell\Convert with Freemake" /F 1>NUL 2>&1
  120. REG DELETE "HKCR\SystemFileAssociations\.png\Shell\Convert with Freemake" /F 1>NUL 2>&1
  121. REG DELETE "HKCR\SystemFileAssociations\.ppm\shell\Convert with Freemake" /F 1>NUL 2>&1
  122. REG DELETE "HKCR\SystemFileAssociations\.pva\shell\Convert with Freemake" /F 1>NUL 2>&1
  123. REG DELETE "HKCR\SystemFileAssociations\.qcp\shell\Convert with Freemake" /F 1>NUL 2>&1
  124. REG DELETE "HKCR\SystemFileAssociations\.qt\shell\Convert with Freemake" /F 1>NUL 2>&1
  125. REG DELETE "HKCR\SystemFileAssociations\.r3d\shell\Convert with Freemake" /F 1>NUL 2>&1
  126. REG DELETE "HKCR\SystemFileAssociations\.ra\shell\Convert with Freemake" /F 1>NUL 2>&1
  127. REG DELETE "HKCR\SystemFileAssociations\.ras\shell\Convert with Freemake" /F 1>NUL 2>&1
  128. REG DELETE "HKCR\SystemFileAssociations\.rax\shell\Convert with Freemake" /F 1>NUL 2>&1
  129. REG DELETE "HKCR\SystemFileAssociations\.rm\shell\Convert with Freemake" /F 1>NUL 2>&1
  130. REG DELETE "HKCR\SystemFileAssociations\.rmj\shell\Convert with Freemake" /F 1>NUL 2>&1
  131. REG DELETE "HKCR\SystemFileAssociations\.rms\shell\Convert with Freemake" /F 1>NUL 2>&1
  132. REG DELETE "HKCR\SystemFileAssociations\.rmvb\shell\Convert with Freemake" /F 1>NUL 2>&1
  133. REG DELETE "HKCR\SystemFileAssociations\.rmx\shell\Convert with Freemake" /F 1>NUL 2>&1
  134. REG DELETE "HKCR\SystemFileAssociations\.roq\shell\Convert with Freemake" /F 1>NUL 2>&1
  135. REG DELETE "HKCR\SystemFileAssociations\.rpl\shell\Convert with Freemake" /F 1>NUL 2>&1
  136. REG DELETE "HKCR\SystemFileAssociations\.rtsp\shell\Convert with Freemake" /F 1>NUL 2>&1
  137. REG DELETE "HKCR\SystemFileAssociations\.rv\shell\Convert with Freemake" /F 1>NUL 2>&1
  138. REG DELETE "HKCR\SystemFileAssociations\.sdp\shell\Convert with Freemake" /F 1>NUL 2>&1
  139. REG DELETE "HKCR\SystemFileAssociations\.sgi\shell\Convert with Freemake" /F 1>NUL 2>&1
  140. REG DELETE "HKCR\SystemFileAssociations\.shn\shell\Convert with Freemake" /F 1>NUL 2>&1
  141. REG DELETE "HKCR\SystemFileAssociations\.smk\shell\Convert with Freemake" /F 1>NUL 2>&1
  142. REG DELETE "HKCR\SystemFileAssociations\.sr\shell\Convert with Freemake" /F 1>NUL 2>&1
  143. REG DELETE "HKCR\SystemFileAssociations\.svi\shell\Convert with Freemake" /F 1>NUL 2>&1
  144. REG DELETE "HKCR\SystemFileAssociations\.swf\shell\Convert with Freemake" /F 1>NUL 2>&1
  145. REG DELETE "HKCR\SystemFileAssociations\.tga\shell\Convert with Freemake" /F 1>NUL 2>&1
  146. REG DELETE "HKCR\SystemFileAssociations\.thp\shell\Convert with Freemake" /F 1>NUL 2>&1
  147. REG DELETE "HKCR\SystemFileAssociations\.tif\Shell\Convert with Freemake" /F 1>NUL 2>&1
  148. REG DELETE "HKCR\SystemFileAssociations\.tiff\Shell\Convert with Freemake" /F 1>NUL 2>&1
  149. REG DELETE "HKCR\SystemFileAssociations\.tod\shell\Convert with Freemake" /F 1>NUL 2>&1
  150. REG DELETE "HKCR\SystemFileAssociations\.ts\shell\Convert with Freemake" /F 1>NUL 2>&1
  151. REG DELETE "HKCR\SystemFileAssociations\.tta\shell\Convert with Freemake" /F 1>NUL 2>&1
  152. REG DELETE "HKCR\SystemFileAssociations\.txd\shell\Convert with Freemake" /F 1>NUL 2>&1
  153. REG DELETE "HKCR\SystemFileAssociations\.vc1\shell\Convert with Freemake" /F 1>NUL 2>&1
  154. REG DELETE "HKCR\SystemFileAssociations\.vfw\shell\Convert with Freemake" /F 1>NUL 2>&1
  155. REG DELETE "HKCR\SystemFileAssociations\.vob\shell\Convert with Freemake" /F 1>NUL 2>&1
  156. REG DELETE "HKCR\SystemFileAssociations\.voc\shell\Convert with Freemake" /F 1>NUL 2>&1
  157. REG DELETE "HKCR\SystemFileAssociations\.vro\shell\Convert with Freemake" /F 1>NUL 2>&1
  158. REG DELETE "HKCR\SystemFileAssociations\.w64\shell\Convert with Freemake" /F 1>NUL 2>&1
  159. REG DELETE "HKCR\SystemFileAssociations\.wav\shell\Convert with Freemake" /F 1>NUL 2>&1
  160. REG DELETE "HKCR\SystemFileAssociations\.webm\shell\Convert with Freemake" /F 1>NUL 2>&1
  161. REG DELETE "HKCR\SystemFileAssociations\.wm\shell\Convert with Freemake" /F 1>NUL 2>&1
  162. REG DELETE "HKCR\SystemFileAssociations\.wma\shell\Convert with Freemake" /F 1>NUL 2>&1
  163. REG DELETE "HKCR\SystemFileAssociations\.wmv\shell\Convert with Freemake" /F 1>NUL 2>&1
  164. REG DELETE "HKCR\SystemFileAssociations\.wmvhd\shell\Convert with Freemake" /F 1>NUL 2>&1
  165. REG DELETE "HKCR\SystemFileAssociations\.wv\shell\Convert with Freemake" /F 1>NUL 2>&1
  166. REG DELETE "HKCR\SystemFileAssociations\.xa\shell\Convert with Freemake" /F 1>NUL 2>&1
  167. REG DELETE "HKCR\SystemFileAssociations\.yuv\shell\Convert with Freemake" /F 1>NUL 2>&1



tool de nirsoft

O como alternativa, mi propia utilidad de código abierto para añadir elementos al inicio de Windows de forma amistosa mediante interfaz gráfica:

File2Startup

En la pestaña inicial puedes configurar un nuevo elemento a añadir (como el batch-script de arriba, o el archivo "reg.exe" con los parámetros que definas):



Y en esta otra pestaña puedes vizualizar, editar y eliminar los elementos que se inician con Windows:



Atentamente, Elektro.
« Última modificación: 18 Septiembre 2024, 11:06 am por Eleкtro » En línea

zelarra

Desconectado Desconectado

Mensajes: 54


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #15 en: 18 Septiembre 2024, 13:35 pm »

Mira:

https://ibb.co/DbFG9vm

Lo que busco es eso qué te he marcado en rojo.

Querría saber:

1. Dónde puedo encontrar un listado de esos parámetros para saber cuál es su signficado.

2. Cómo aplicarlo a mi caso concreto, sin tener que crear un archivo bat, directamente en el valor de la clave que he creado.

Muchas gracias.
En línea

MCKSys Argentina
Moderador Global
***
Desconectado Desconectado

Mensajes: 5.505


Diviértete crackeando, que para eso estamos!


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #16 en: 18 Septiembre 2024, 15:15 pm »

Hola!

1. Dónde puedo encontrar un listado de esos parámetros para saber cuál es su signficado.

La mayoría de los programas de consola que reciben parámetros, los enumeran cuando le pasas argumentos erróneos o cuando le pasas "/?" (en Windows).
En el caso de cmd.exe (el que muestras en la foto) los puedes ver ejecutando lo siguiente en una consola:
Citar
cmd /?

También está en la web: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd

Por otro lado, no entiendo qué quieres hacer aquí:

2. Cómo aplicarlo a mi caso concreto, sin tener que crear un archivo bat, directamente en el valor de la clave que he creado.

está relacionado con ésto, pero tampoco entiendo lo que quieres:
sé que hay un listado de parámetros, como -s, -v..., que uno de ellos sirve para que se ejecute sin que se vea la lista de comandos.


Saludos!
En línea

MCKSys Argentina

"Si piensas que algo está bien sólo porque todo el mundo lo cree, no estás pensando."

zelarra

Desconectado Desconectado

Mensajes: 54


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #17 en: 18 Septiembre 2024, 16:53 pm »

Disculpa, que no he explicado lo que quería.

Pues mira, lo que quiero es saber si es posible añadir algún parámetro directamente en el valor de 000 Claves para que no me muestre la ventana de comandos, vamos, que toda la ejecución del reg sea oculta.

https://ibb.co/RT3RLBX

Muchas gracias.
En línea

Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.842



Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #18 en: 19 Septiembre 2024, 10:43 am »

1. Dónde puedo encontrar un listado de esos parámetros para saber cuál es su signficado.

Pues ya te lo han explicado. Y, adicionalmente a la sección de ayuda del propio comando, el siguiente sitio web sirve muy bien para tener una referencia online de todos los comandos disponibles en CMD y sus modificacores (switches) / parámetros:

https://ss64.com/nt/

De CMD y RD:
https://ss64.com/nt/cmd.html
https://ss64.com/nt/rd.html



2. Cómo aplicarlo a mi caso concreto, sin tener que crear un archivo bat, directamente en el valor de la clave que he creado.

La sintaxis que has aplicado es incorrecta. Resulta necesario utilizar comillas dobles después del parámetro /C para encerrar el valor que contiene espacios.

Ejemplo:

Código:
CMD /C "DIR /B "." & PAUSE"

CMD.exe es un proceso como cualquier otro, y, como en cualquier otro proceso y/o comando de CMD, también debes encerrar el valor de los parámetros entre comillas dobles para evitar conflictos con cadenas de texto que contengan espacios en blanco.



Lo que quiero es saber si es posible añadir algún parámetro directamente en el valor de 000 Claves para que no me muestre la ventana de comandos, vamos, que toda la ejecución del reg sea oculta.

No es posible ocultar la ventana de una instancia de CMD.exe / REG.exe. No del modo en el que lo planteas (ejecutando directamente dicho proceso).

Lo que sí puedes hacer es iniciar el ejecutable WScript.exe (el cual no tiene interfaz por línea de comandos ni interfaz gráfica visible, por lo que es "invisible"), pasándole como parámetro un archivo de Visual Basic Script (archivo con extensión *.VBS), y desde ese script recibir el resto de parámetros por línea de comandos para crear, de forma oculta, un nuevo proceso del ejecutable "reg.exe" y con sus respectivos parámetros adicionales (IMPORT ...).

Esto sería el archivo de script VBS:

RunProgramHidden.vbs
Código
  1. Option Explicit
  2.  
  3. Dim title, version, author, description, usage
  4. title       = "Run Program Hidden"
  5. version     = "1.2"
  6. author      = "ElektroStudios"
  7. description = "Runs a program and hides its window."
  8. usage       = """File.exe"" ""File Parameters"""
  9.  
  10. If WScript.Arguments.Count < 1 Then
  11.    Call ShowHelp(title, version, author, null, description, usage)
  12.    Wscript.Quit(1)
  13. End If
  14.  
  15. Dim whtSpace, dblQuote
  16. whtSpace = ChrW(32)
  17. dblQuote = ChrW(34)
  18.  
  19. Dim executable, arguments
  20. executable = dblQuote & WScript.Arguments.Item(0) & dblQuote
  21. arguments  = JoinWshArguments(1) ' Enclosed in double quotes and separated by a white space.
  22.  
  23. Dim windowStyle, waitOnReturn
  24. windowStyle  = 0     ' Hide the window (and activate another window.)
  25. waitOnReturn = False ' Don't wait for the command to complete before
  26.                     ' continuing execution of the WSH script.
  27.  
  28. Dim objShell
  29. Set objShell = WScript.CreateObject("WScript.Shell")
  30. Call objShell.Run(executable & whtSpace & arguments, windowStyle, waitOnReturn)
  31.  
  32. Wscript.Quit(0)
  33.  
  34. ' =========================================================
  35. ' |                  Universal Functions                  |
  36. ' =========================================================
  37.  
  38. ' --------------------------------------------------------------------
  39. ' Function: JoinWshArguments
  40. '
  41. ' Purpose:
  42. '   Joins the current command-line arguments into a single-line string.
  43. '   Each argument is enclosed in double quotes for convenience,
  44. '   and separated by a white space.
  45. '
  46. ' Parameters:
  47. '   • startIndex (Integer):
  48. '       The index to start joining arguments.
  49. '
  50. ' Returns:
  51. '   The resulting string with the command-line arguments joined.
  52. ' --------------------------------------------------------------------
  53. Function JoinWshArguments(ByVal startIndex)
  54.  
  55.    startIndex = CInt(startIndex)
  56.    If startIndex < 0 Then
  57.     Call ThrowError("Value 'startIndex' must be equal to or greater than zero.")
  58.    End If
  59.  
  60.    Dim argsCount
  61. argsCount = WScript.Arguments.Count
  62.    If startIndex > argsCount Then
  63.     Call ThrowError("Value 'startIndex' must be equal to or smaller than 'WScript.Arguments.Count'.")
  64.    End If
  65.  
  66.    Dim whtSpace, dblQuote
  67.    whtSpace = Chr(32)
  68.    dblQuote = Chr(34)
  69.  
  70.    Dim i, args
  71. For i = startIndex to (argsCount - 1)
  72. ' args = "arg1" "arg2" "arg3" etc.
  73. args = args & whtSpace & dblQuote & WScript.Arguments.Item(i) & dblQuote
  74. Next
  75.  
  76.    JoinWshArguments = args
  77. End Function
  78.  
  79. ' --------------------------------------------------------------------
  80. ' Subroutine: ThrowError
  81. '
  82. ' Purpose:
  83. '   Raises a runtime error with the specified error description,
  84. '   and sets the error number to 9999.
  85. '
  86. ' Parameters:
  87. '   • errDescription (String):
  88. '       A description that explains the cause or context of the error.
  89. ' --------------------------------------------------------------------
  90. Sub ThrowError(ByVal errDescription)
  91. Const errNumber = 9999
  92.  
  93.    Err.Clear
  94.    Err.Number = errNumber
  95.    Err.Description = errDescription
  96.    Err.Raise errNumber, WScript.ScriptName, errDescription
  97. End Sub
  98.  
  99. ' --------------------------------------------------------------------
  100. ' Subroutine: ShowHelp
  101. '
  102. ' Purpose:
  103. '   Displays a message box containing information about the script,
  104. '   including its title, version, author, description, and usage
  105. '   instructions. This function is useful for providing a comprehensive
  106. '   overview of the script to users.
  107. '
  108. ' Parameters:
  109. '   • title (String):
  110. '       The title of the script, which will be displayed
  111. '       at the top of the message box.
  112. '   • version (String):
  113. '       The version number of the script, which will be
  114. '       appended to the title to indicate the current version.
  115. '   • author (String):
  116. '       The name of the author of the script.
  117. '   • copyright (String):
  118. '       The company or creator copyright of the script.
  119. '   • description (String):
  120. '       A brief explanation of what the script does. This text should
  121. '       describe the script's functionality or purpose in a clear and
  122. '       concise manner.
  123. '   • usage (String):
  124. '       Instructions on how to use the script, including any required
  125. '       or optional arguments.
  126. '
  127. ' Example:
  128. '   Call ShowHelp("MyScript", "1.0", "John Doe", "© Copyright", _
  129. '                 "This script performs a specific task.", _
  130. '                 "/Switch ""Value""")
  131. ' --------------------------------------------------------------------
  132. Sub ShowHelp(title, version, author, copyright, description, usage)
  133.    Dim scriptName
  134.    scriptName = WScript.ScriptName
  135.  
  136.    Dim whtSpace, dblQuote
  137.    whtSpace = Chr(32)
  138.    dblQuote = Chr(34)
  139.  
  140.    If Len(title) <> 0 Then
  141.        title = title & whtSpace
  142.    End If
  143.  
  144.    If Len(version) <> 0 Then
  145.        version = "v" & version
  146.    End If
  147.  
  148.    Dim topNewLine
  149.    If Len(title & version) <> 0 Then
  150.        topNewLine = vbNewLine & vbNewLine
  151.    End If
  152.  
  153.    If Len(author) <> 0 Then
  154.        author = "Author:" & whtSpace & author & _
  155.                 vbNewLine & vbNewLine
  156.    End If
  157.  
  158.    If Len(copyright) <> 0 Then
  159.        copyright = "Copyright:" & whtSpace & copyright & _
  160.                    vbNewLine & vbNewLine
  161.    End If
  162.  
  163.    If Len(description) <> 0 Then
  164.        description = "Description:" & vbNewLine & _
  165.                      description & _
  166.                      vbNewLine & vbNewLine
  167.    End If
  168.  
  169.    If Len(usage) <> 0 Then
  170.        usage = "Usage: " & vbNewLine & _
  171.                scriptName & whtSpace & usage
  172.    End If
  173.  
  174.    Dim msg
  175.    msg = title & version & topNewLine & _
  176.          author & _
  177.          copyright & _
  178.          description & _
  179.          usage
  180.  
  181.    MsgBox msg, vbInformation, scriptName
  182. End Sub



(Nota: El código VBS de arriba es una ampliación de 👉este otro👈 aporte que publiqué hace un tiempo, por si prefieres una versión más reducida de solamente 12 líneas de código, e igualmente funcional.)

Eso lo guardas como un archivo de texto plano, pero con extensión de archivo "vbs" (ej.: "RunProgramHidden.vbs"). Y, por último, y ya que estás usando mi programa, te indico para configurarlo:

Este sería el comando completo de ejemplo:
Código:
"WScript.exe" "C:\Test\RunProgramHidden.vbs" "REG.exe" IMPORT "C:\Test\Script.reg"

Y así se configuraría en la interfaz del programa:


Atentamente, Elektro.
« Última modificación: 19 Septiembre 2024, 12:31 pm por Eleкtro » En línea

zelarra

Desconectado Desconectado

Mensajes: 54


Ver Perfil
Re: Ejecutar un archivo reg al iniciar la sesión
« Respuesta #19 en: 19 Septiembre 2024, 11:04 am »

Oye, pues magnífico.

A ver, tengo un archivo reg donde he ido recopilando todas las modificaciones de registro que suelo hacer para dejar Windows a mi gusto (creo que unas 26).

Con esto, consigo que me lo aplique al inicio por si ha habido actualizaciones de programa que han metido accesos directos en el menú contextual, por ejemplo.

Como te digo, muchas, muchas gracias.

Un saludo.
En línea

Páginas: 1 [2] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ejecutar Archivo Bat al iniciar sesion solo una vez al dia
Scripting
4RM4ND0 73P3D4 5 6,993 Último mensaje 14 Febrero 2013, 11:47 am
por Eleкtro
Iniciar Sesion
PHP
::: Devil ::: 1 1,861 Último mensaje 29 Mayo 2014, 22:19 pm
por Mokonauta
Iniciar sesion en web con C# « 1 2 »
.NET (C#, VB.NET, ASP)
Kaxperday 19 14,489 Último mensaje 5 Diciembre 2014, 20:01 pm
por Kaxperday
ejecutar archivo bat como administrador al iniciar windows
Windows
henao81 2 4,314 Último mensaje 29 Mayo 2015, 21:07 pm
por henao81
Iniciar un programa al iniciar el ordenador "NO" una sesion.
Windows
e5c0rpi0n 1 2,412 Último mensaje 3 Agosto 2016, 02:17 am
por [Arg] $triker;
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines