Advertisement
KaungMyatKyaw

MashTin (Batch Programming) By KaungMyatKyaw

Apr 20th, 2019
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.26 KB | None | 0 0
  1. ----Remove this
  2. --Read This
  3. Made by Kaungmyatkyaw
  4. For CAE
  5. For Me
  6. Made in Myanmar
  7. Tell me if i have some errors
  8. 4.20.2019
  9. Programming name= Batch Programming
  10. With VBS also
  11. save as MashTin.bat
  12. --Read This
  13. ----Remove this
  14.  
  15.  
  16. @echo off
  17. title MashTin
  18. color b
  19. cd Desktop
  20. mkdir MashTinFile
  21. cd MashTinFile
  22. mkdir Users
  23. mkdir Downloads
  24. cls
  25.  
  26. :A
  27. cls
  28.  
  29. echo MashTin
  30. echo.
  31. echo.
  32. echo MashTin is came from PIP(Made by KMK)
  33. echo Better Than PIP
  34. echo ---------------------------------------------------------
  35. echo (1 Login
  36. echo (2 Sign up
  37. echo ---------------------------------------------------
  38. set /p input=Code:
  39. if %input%==1 goto LM1
  40. if %input%==2 goto SU1
  41. goto A
  42. :SU1
  43. color b
  44. title Sign Up
  45. cls
  46. echo Sign Up
  47. echo ------------------------------
  48. set /p Username=Username:
  49. set /p Password=Password:
  50. goto History
  51. :History
  52. cls
  53. cd Users
  54. (echo color a
  55. echo echo %Username%)>History.bat
  56. goto save
  57. :save
  58. cls
  59. cd Users
  60. md %Username%File
  61. cd %Username%File
  62. cls
  63. (echo set Username=%Username%
  64. echo set Password=%Password%)>%Username%.bat
  65. echo set Stats=New>%Username%stat.bat
  66. echo Success :)
  67. echo -----------------------------
  68. echo Successfully Sign up
  69. pause
  70. goto A
  71.  
  72. :LM1
  73. title Login
  74. cd Users
  75. cls
  76. echo Login
  77. echo -------------------------------------------------
  78. set /p name1=Username:
  79. cd %name1%File
  80. if not exist %name1%.bat (
  81. echo Invaid username
  82. pause
  83. goto A
  84. )
  85. set /p pass1=Password:
  86. call %name1%.bat
  87. if %pass1%==%Password% goto MTC
  88. if not %pass1%==%Password% (
  89. echo Invaid Password
  90. pause
  91. goto A
  92. )
  93.  
  94. :MTC
  95. call %name1%stat.bat
  96. if stat==New goto MTN
  97. goto MTM
  98.  
  99. :MTN
  100. cd %name1%File
  101. title MashTin for New
  102. cls
  103. echo MashTin
  104. echo ----------------------------------------------------------------------------------------------
  105. echo Welcome you are New, %name1%
  106. echo (1 First Welcome
  107. echo (2 Click the Number of the start to Go
  108. echo (3 Need Help?
  109. echo (4 Call me
  110. echo (5 Creator KaungMyatKyaw
  111. pause
  112. goto MTM
  113.  
  114. :MTM
  115. cd Users
  116. cls
  117. rd %name1%stat.bat
  118. echo set stat=Starter>%name1%stat.bat
  119. cls
  120. goto MT
  121.  
  122. :MT
  123. cd ..
  124. cd ..
  125. cd Users
  126. cd Aspire
  127. cd Desktop
  128. cd MashTin
  129. cd Users
  130. cd %name1%File
  131. cls
  132. title MashTin
  133. echo MashTin
  134. echo -----------------------------------------------------------
  135. echo (1 Internet Connector
  136. echo (2 Downloader
  137. echo (3 Movies,Series and Channels
  138. echo (4 Create Your Own Program
  139. echo (5 Created Programs By %name1%
  140. echo (6 Lucky Draw
  141. echo (7 About your Account
  142. echo ---------------------------------------------------------
  143. set /p input=Code:
  144. if %input%==1 goto IC
  145. if %input%==2 goto DLD
  146. if %input%==3 goto INCME
  147. if %input%==4 goto CYOP
  148. if %input%==5 goto CF
  149. if %input%==6 goto LD
  150. if %input%==7 goto AYA
  151. goto MT
  152.  
  153. :INCME
  154. cls
  155. ping -n 0.5 www.google.com
  156. if errorlevel 1 goto MEL
  157. if not errorlevel 1 goto ME
  158.  
  159. :MEL
  160. cls
  161. echo Internet!!! :(
  162. echo --------------------------------
  163. echo You need Good Internet Connection to do this
  164. pause
  165. goto MT
  166.  
  167. :ME
  168. cls
  169. echo Movies,Series and Channels
  170. echo -------------------------------------------------
  171. echo (1 MRTV 4
  172. echo (2 MashTin Creator Channel
  173. echo -------------------------------------------------
  174. set /p input=Code:
  175. if input==1 goto MRTV4
  176. if input==2 goto MTCC
  177. goto MT
  178.  
  179. :MRTV4
  180. cls
  181. start http://www.myanmartvchannel.com/mrtv4.html
  182. goto MT
  183.  
  184. :MTCC
  185. cls
  186. start https://www.youtube.com/channel/UCbyiBe_cunvXWKSKfoNsLzg?view_as=subscriber
  187. goto MT
  188.  
  189. :DLD
  190. cd Desktop
  191. cd MashTinFile
  192. cd Downloads
  193. md %name1%Downloads
  194. cd %name1%Downloads
  195. cls
  196. echo Downloads
  197. echo ---------------------------------------
  198. echo (1 Second Security
  199. echo ----------------------------------------
  200. set /p input=Code:
  201. if %input%==1 goto Download1
  202.  
  203.  
  204. :Download1
  205. cls
  206. echo a=inputbox("Password:") >> %name1%SecondSecurity.vbs
  207. echo if a="MashTin" then >> %name1%SecondSecurity.vbs
  208. echo msgbox "logged in" >> %name1%SecondSecurity.vbs
  209. echo else >> %name1%SecondSecurity.vbs
  210. echo msgbox "Error" >> %name1%SecondSecurity.vbs
  211. echo Set WshShell = WScript.CreateObject ("WScript.Shell") >> %name1%SecondSecurity.vbs
  212. echo WshShell.Run ("Login.vbs") >> %name1%SecondSecurity.vbs
  213. echo end if >> %name1%SecondSecurity.vbs
  214. echo Downloaded( You can see your Download in Desktop\MashTinFile\Downloads\%name1%Downloads)
  215. echo Password will be MashTin for your download
  216. pause
  217. cd ..
  218. goto MT
  219.  
  220. :CYOP
  221.  
  222. cls
  223. cd ..
  224. cd MashTin
  225. cd Users
  226. cd %name1%File
  227. md %name1%Creations
  228. cd %name1%Creations
  229. cls
  230. title MashTin Studio
  231. echo MashTin Studio
  232. echo ----------------------------------------------------------
  233. echo (1 Create
  234. echo (2 Created Programs
  235. echo ---------------------------------------------------------
  236. set /p input=Code:
  237. if %input%==1 goto CE
  238. if %input%==2 goto CF
  239. goto MT
  240.  
  241. :CE
  242. cls
  243. echo Creating( You need to write in one sentence only)
  244. echo ( Types only Batch Programming )
  245. echo ( You dont need to write . in Type)
  246. echo ( You can add your created program also )
  247. echo -----------------------------------:-----------------------
  248. set /p nameC= Name to save:
  249. set /p write = Write:
  250. pause
  251. echo %write% >> %nameC%Program.bat
  252. echo set Program=%nameC%Program.bat >> %name1%CreatedProgram.bat
  253. goto MT
  254.  
  255. :CF
  256. cd MashTin
  257. cd Users
  258. cd %name1%File
  259. cd %name1%Creations
  260. cls
  261. if not exist %nameC%Program.bat goto CFN
  262. goto CFY
  263.  
  264. :CFY
  265. cls
  266. echo Latest created file
  267. echo ----------------------------
  268. call %name1%CreatedProgram.bat
  269. echo Latest Created Program = %Program%
  270. echo ----------------------------
  271. echo (1 Open
  272. echo (2 Exit
  273. echo ------------------------------
  274. set /p input=Code:
  275. if %input%==1 goto CFYO
  276. if %input%==2 goto CFYE
  277. goto MT
  278.  
  279. :CFYO
  280. start %nameC%Program.bat
  281. goto MT
  282.  
  283. :CFYE
  284. goto MT
  285.  
  286.  
  287. :CFN
  288. cls
  289. echo Created Files
  290. echo ----------------------------------
  291. echo You haven't created Program
  292. pause
  293. goto MT
  294.  
  295. :AYA
  296. cd Users
  297. cd %name1%File
  298. cls
  299. title About %name1%
  300. echo About %name1%
  301. echo ------------------------------
  302. call %name1%.bat
  303. echo Username=%Username%
  304. echo Password=%Password%
  305.  
  306. if not exist %name1%Lucky.bat goto LNS
  307. goto LYS
  308.  
  309. :LYS
  310. call %name1%Lucky.bat
  311. echo Lucky=%Lucky%
  312. call %name1%stat.bat
  313. echo Stat=%stat%
  314. pause
  315. goto MT
  316.  
  317. :LNS
  318. echo Lucky=No
  319. call %name1%stat.bat
  320. echo Stat=%stat%
  321. pause
  322. goto MT
  323.  
  324. :IC
  325. cls
  326. title Internet Connector
  327. echo Internet Connector(This will be nothing shown while Connecting)
  328. echo -------------------------------------
  329. set /p NameIT =Name of your Wifi:
  330. netsh wlan connect %NameIT%
  331. goto MT
  332.  
  333. :LD
  334. cls
  335. title Lucky Draw
  336. echo Lucky Draw
  337. echo -----------------------------------
  338. set /p YLucky=Your Lucky Number:
  339. if %YLucky%==77777 goto Access
  340. goto Normal
  341.  
  342. :Normal
  343. set Lucky=%random%
  344. goto Chance
  345.  
  346. :Chance
  347. echo Lucky Number = %Lucky%
  348. echo Your Lucky Number = %YLucky%
  349. pause
  350. if %Lucky%==%YLucky% goto LDB
  351. goto LDL
  352.  
  353. :Access
  354. set Lucky=77777
  355. goto Chance
  356.  
  357. :LDL
  358. cls
  359. title Lucky Draw (lose)
  360. echo Lucky Draw
  361. echo ------------------------
  362. echo You lose the Lucky Draw
  363. pause
  364. goto MT
  365.  
  366. :LDW
  367. cls
  368. title Lucky Draw (win)
  369. echo Lukcy Draw
  370. echo ---------------------------------
  371. echo You win the Lucky draw
  372. pause
  373. goto MT
  374.  
  375. :LDB
  376. cls
  377. cd %name1%File
  378. echo set Lucky==Win >%name1%Lucky.bat
  379. rd %name1%stat.bat
  380. echo set stat=Lucky >%name1%stat.bat
  381. goto LDW
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement