Pr0gramer

DS App v1.0

Apr 19th, 2014
3,615
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::DS app www.darksight.tk
  2. :ini
  3. Set uu=Dark
  4. Set win=www.
  5. Set endwin=.tk
  6. Set slash=Sight
  7. @echo off
  8. mode con cols=80 lines=25
  9. set app-vertion=1.0
  10. title %win%%uu%%slash%%endwin% App V%app-vertion%   -Por: %uu% %slash%
  11. Cls
  12. ::
  13. ::
  14. :nombre
  15. Set nombre=type-in
  16. Cls
  17. Echo escribe tu primer nombre y presiona ENTER.
  18. Echo.
  19. Set /p nombre=Nombre:
  20. Cls
  21. Set tipo=nombre
  22. If %nombre%==type-in goto type-in
  23. ::
  24. ::
  25. :genero
  26. Set genero=type-in
  27. Cls
  28. Echo Hola %nombre%
  29. Echo Eres hombre o mujer?
  30. Echo.
  31. Echo 1.) Hombre
  32. Echo 2.) Mujer
  33. Echo.
  34. Set /p genero=Opcion Numero:
  35. Cls
  36. Set tipo=genero
  37. If %genero%==type-in goto type-in
  38. If %genero%==0 goto undefined
  39. If %genero%==1 goto genero1
  40. If %genero%==2 goto genero2
  41. If %genero% geq 3 goto undefined
  42. Goto undefined
  43. Exit
  44. :genero 1
  45. Cls
  46. set saludo=Bienvenido
  47. Goto menuprincipal
  48. Exit
  49. :genero2
  50. Cls
  51. set saludo=Bienvenida
  52. Goto menuprincipal
  53. ::
  54. ::---------------MENU_PRINCIPAL----------------
  55. ::
  56. :menuprincipal
  57. Set menu=type-in
  58. title %win%%uu%%slash%%endwin% App V%app-vertion%   -Por: %uu% %slash%
  59. Cls
  60. Echo %saludo% %nombre%
  61. Echo.
  62. Echo Escoje el NUMERO de opcion y presiona ENTER.
  63. Echo.
  64. Echo 1.) Ver Informacion Util
  65. Echo 2.) Visitar Pagina (%win%%uu%%slash%%endwin%)
  66. Echo 3.) Abrir Navegador
  67. Echo 4.) Salir
  68. Echo.
  69. Set /p menu=Opcion Numero:
  70. Cls
  71. Set tipo=principal
  72. If %menu%==type-in goto type-in
  73. If %menu%==salir goto exit
  74. If %menu%==Salir goto exit
  75. If %menu%==SALIR goto exit
  76. If %menu%==exit goto exit
  77. If %menu%==Exit goto exit
  78. If %menu%==EXIT goto exit
  79. If %menu%==1 goto info
  80. If %menu%==2 goto visitar
  81. If %menu%==3 goto navegador
  82. If %menu%==4 goto exit
  83. If %menu% geq d goto undefined
  84. Goto undefined
  85. ::
  86. :visitar
  87. Cls
  88. If exist chrome.exe goto chrome
  89. If exist opera.exe goto opera
  90. If exist iexplore.exe goto iexplore
  91. :chrome
  92. Cls
  93. Start chrome.exe http://%win%%uu%%slash%%endwin%
  94. Goto menuprincipal
  95. :opera
  96. Cls
  97. Start opera.exe http://%win%%uu%%slash%%endwin%
  98. Goto menuprincipal
  99. :iexplore
  100. Cls
  101. Start iexplore.exe http://%win%%uu%%slash%%endwin%
  102. Goto menuprincipal
  103. ::
  104. :navegador
  105. Set tipo=navegador
  106. Set open=type-in
  107. Cls
  108. Echo Escoje la LETRA de la opcion y presiona ENTER.
  109. Echo.
  110. If exist chrome.exe Echo c.) Google Chrome
  111. If exist chrome.exe Echo o.) Opera
  112. If exist iexplore.exe Echo i.) Internet Explorer
  113. Echo.
  114. Set /p open=Letra:
  115. Cls
  116. If %open%==type-in goto type-in
  117. If %open%==salir goto exit
  118. If %open%==Salir goto exit
  119. If %open%==SALIR goto exit
  120. If %open%==exit goto exit
  121. If %open%==Exit goto exit
  122. If %open%==EXIT goto exit
  123. If %open%==C goto chrome1
  124. If %open%==c goto chrome1
  125. If %open%==O goto opera1
  126. If %open%==o goto opera1
  127. If %open%==I goto iexplore1
  128. If %open%==i goto iexplore1
  129. Goto undefined
  130. :chrome1
  131. Cls
  132. If exist chrome.exe (start chrome.exe http://google.com) else goto undefined
  133. Goto menuprincipal
  134. :opera1
  135. Cls
  136. If exist opera.exe (start opera.exe http://google.com) else goto undefined
  137. Goto menuprincipal
  138. :iexplore1
  139. Cls
  140. If exist iexplore.exe (start iexplore.exe http://google.com) else goto undefined
  141. Goto menuprincipal
  142. ::
  143. :info
  144. Title Informacion Util
  145. Cls
  146. Echo %saludo% %nombre%
  147. Echo.
  148. Echo Version de la aplicacion: %app-vertion%
  149. Echo Creador de la aplicacion: %uu% %slash%
  150. Echo pagina web: %win%%uu%%slash%%endwin%
  151. Echo.
  152. Echo Presione cualquier tecla para volver al menu principal
  153. Pause >nul
  154. Cls
  155. Goto menu principal
  156. ::
  157. ::--------------------ERRORES-----------------------
  158. ::
  159. :type-in
  160. Cls
  161. Echo    ERROR 532
  162. Echo   Escoje una opcion.
  163. Echo.
  164. Echo Presiona cualquier tecla.
  165. Pause >nul
  166. Cls
  167. If %tipo%==nombre goto nombre
  168. If %tipo%==genero goto genero
  169. If %tipo%==navegador goto navegador
  170. If %tipo%==principal goto menuprincipal
  171. Exit
  172. :undefined
  173. Cls
  174. Echo    ERROR 404
  175. Echo   Escoje una opcion.
  176. Echo.
  177. Echo Presiona cualquier tecla.
  178. Pause >nul
  179. Cls
  180. If %tipo%==nombre goto nombre
  181. If %tipo%==genero goto genero
  182. If %tipo%==navegador goto navegador
  183. If %tipo%==principal goto menuprincipal
  184. Exit
  185. ::
  186. :salir
  187. Cls
  188. title -CERRANDO APP-  %win%%uu%%slash%%endwin%
  189. Cls
  190. @echo off
  191. Cls
  192. Echo Cerrando APP.
  193. Echo.
  194. Echo ESPERE 5
  195. Ping localhost -n 2 >nul
  196. @echo off
  197. Cls
  198. Echo Cerrando APP.
  199. Echo.
  200. Echo ESPERE 4
  201. Ping localhost -n 2 >nul
  202. @echo off
  203. Cls
  204. Echo Cerrando APP.
  205. Echo.
  206. Echo ESPERE 3
  207. Ping localhost -n 2 >nul
  208. @echo off
  209. Cls
  210. Echo Cerrando APP.
  211. Echo.
  212. Echo ESPERE 2
  213. Ping localhost -n 2 >nul
  214. @echo off
  215. Cls
  216. Echo Cerrando APP.
  217. Echo.
  218. Echo ESPERE 1
  219. Ping localhost -n 2 >nul
  220. @echo off
  221. Cls
  222. Echo Cerrando APP.
  223. Echo.
  224. Echo ESPERE 0
  225. Ping localhost -n 2 >nul
  226. Cls
  227. Msg * Hasta La proxima %nombre%
  228. Ping localhost -n 1 >nul
  229. Exit
Advertisement
Comments
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment