Guest User

Untitled

a guest
Mar 10th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.10 KB | None | 0 0
  1. ::osmiumcorp.wordpress.com
  2. ::Do not claim this program as your own. If you have a revised version, please give credit or contact osmiumsoftwareofficial@gmail.com
  3.  
  4. echo off
  5. title Osmium 64
  6. mode 50,18
  7. color 0f
  8. setlocal enabledelayedexpansion
  9. set color=0f
  10. set theme=Original
  11. if exist Addons (
  12. if exist Users (
  13. cd Users
  14. goto login
  15. ) else goto installer
  16. ) else goto installer
  17.  
  18. :installer
  19. set loader=
  20. cls
  21. echo.
  22. echo System Installer
  23. echo.
  24. echo With your premission, Osmium 64 will create 3
  25. echo folders necessary for the OS to run. These will
  26. echo be created in the same folder that Osmium 64 is
  27. echo in. If you give permission, the program will
  28. echo immediately close, signifying that the setup
  29. echo been completed.
  30. echo.
  31. choice /c:yn /n /m "Permission? (Y/N) "
  32. if "%errorlevel%" =="2" exit
  33. if "%errorlevel%" =="1" goto bypass
  34. :bypass
  35. if not exist "Osmium 64" mkdir "Osmium 64"
  36. cd "Osmium 64"
  37. if not exist Users mkdir Users
  38. if not exist Addons mkdir Addons
  39. cd ..
  40. move /y "%cd%\Osmium 64.bat" "%cd%\Osmium 64" >nul
  41.  
  42. :login
  43. mode 50,25
  44. color 0f
  45. set user=
  46. set password=
  47. set addondest=
  48. set hscore=
  49. set hscorename=
  50. set karleon=
  51. set perclick=
  52. set freeplay=
  53. set color=0f
  54. set theme=Original
  55. set wmplayerkill=
  56. set musicdest=
  57. set u=
  58. cls
  59. echo.
  60. echo Login
  61. echo.
  62. echo C] Create User
  63. echo X] Exit
  64. echo.
  65. echo --Users--
  66. dir /b
  67. echo.
  68. set /p u="Enter your username: "
  69. if not defined u goto login
  70. set u=%u:|=%
  71. set u=%u:/=%
  72. set u=%u:\=%
  73. set u=%u:"=%
  74. if /i "%u%" =="X" exit
  75. if /i "%u%" =="C" goto create
  76. if not exist "%u%" (
  77. goto logincreate
  78. ) else goto logincontinue
  79. :logincreate
  80. echo.
  81. echo This user does not exist.
  82. echo [PRESS ANY KEY]
  83. pause >nul
  84. goto login
  85. :logincontinue
  86. cd "%u%"
  87. < info.sav (
  88. set /p user=
  89. set /p password=
  90. set /p color=
  91. set /p theme=
  92. set /p addondest=
  93. )
  94. < whackem.sav (
  95. set /p hscore=
  96. set /p hscorename=
  97. set /p avscore=
  98. set /p avcount=
  99. set /p avtotal=
  100. )
  101. < karleonclicker.sav (
  102. set /p karleon=
  103. set /p perclick=
  104. )
  105. < music.sav (
  106. set /p wmplayerkill=
  107. set /p musicdest=
  108. )
  109. goto enterpass
  110.  
  111. :create
  112. mode 50,18
  113. set user=
  114. set n2=
  115. cls
  116. echo.
  117. echo Create User
  118. echo.
  119. echo B] Back
  120. echo.
  121. set /p user="Enter a username: "
  122. if not defined user goto create
  123. set user=%user:|=%
  124. set user=%user:/=%
  125. set user=%user:\=%
  126. set user=%user:"=%
  127. set n2=%user: =%
  128. if not defined n2 goto create
  129. set n2=
  130. if /i "%user%" =="B" (
  131. set user=
  132. goto login
  133. )
  134. if /i "%user%" =="C" (
  135. echo.
  136. echo This username is prohibited
  137. echo [PRESS ANY KEY]
  138. pause >nul
  139. goto create
  140. )
  141. if /i "%user%" =="X" (
  142. echo.
  143. echo This username is prohibited
  144. echo [PRESS ANY KEY]
  145. pause >nul
  146. goto create
  147. )
  148. if exist "%user%" (
  149. echo.
  150. echo This user already exists
  151. echo [PRESS ANY KEY]
  152. pause >nul
  153. goto create
  154. )
  155. :cpass?
  156. cls
  157. echo.
  158. echo Create Password
  159. echo.
  160. echo Do you want to create a password? This can be
  161. echo changed later in settings.
  162. echo.
  163. echo Y] Yes
  164. echo N] No
  165. echo.
  166. choice /c:yn /n
  167. if "%errorlevel%" =="2" (
  168. set password=
  169. mkdir "%user%"
  170. cd "%user%"
  171. call :save
  172. goto enterpass
  173. )
  174. if "%errorlevel%" =="1" goto cpass
  175. goto cpass?
  176. :cpass
  177. set password=
  178. cls
  179. echo.
  180. echo Create Password
  181. echo.
  182. echo Note any ^| or " chatacters will be removed
  183. echo from your password if included.
  184. echo.
  185. echo B] Back
  186. echo.
  187. set /p password="Enter a secure password: "
  188. if not defined password goto cpass
  189. set password=%password:|=%
  190. if not defined password goto cpass
  191. set password=%password:"=%
  192. if not defined password goto cpass
  193. if /i "%password%" =="B" (
  194. set password=
  195. goto cpass?
  196. )
  197. mkdir "%user%"
  198. cd "%user%"
  199. call :save
  200. goto deskm
  201.  
  202. :enterpass
  203. set enter=
  204. if not defined password goto deskm
  205. cls
  206. echo.
  207. echo Enter Password
  208. echo.
  209. echo B] Back
  210. echo.
  211. set /p enter="Enter your password: "
  212. if not defined enter goto enterpass
  213. set enter=%enter:|=%
  214. if not defined enter goto enterpass
  215. set enter=%enter:"=%
  216. if not defined enter goto enterpass
  217. if /i "%enter%" =="B" (
  218. cd ..
  219. goto login
  220. )
  221. if "%enter%" =="%password%" goto deskm
  222. echo.
  223. echo Incorrect
  224. echo [PRESS ANY KEY]
  225. cd ..
  226. pause >nul
  227. goto login
  228.  
  229. :deskm
  230. mode 50,18
  231. :desk
  232. for /f %%a in ('time /t') do (
  233. set standardtime=%%a
  234. )
  235. call :save
  236. color %color%
  237. cls
  238. echo.
  239. echo Logged in as %user%
  240. echo %date% - %standardtime%
  241. echo.
  242. echo i] System Information
  243. echo P] Programs
  244. echo S] Settings
  245. echo X] Log out
  246. echo.
  247. choice /c:isxp /n
  248. if "%errorlevel%" =="4" goto programs
  249. if "%errorlevel%" =="3" if not "%user%" =="Guest User" (
  250. call :save
  251. cd ..
  252. goto login
  253. )
  254. if "%errorlevel%" =="2" goto settings
  255. if "%errorlevel%" =="1" goto info
  256. goto desk
  257.  
  258. :info
  259. mode 50,29
  260. cls
  261. echo.
  262. echo Osmium 64
  263. echo Version: 2.9
  264. echo.
  265. echo Username: %user%
  266. echo Current color theme: %theme%
  267. echo.
  268. echo Update
  269. echo.
  270. echo 2.9 Released - 2/3/2018
  271. echo -Added DVD/CD and removable drive compatability
  272. echo to Addons
  273. echo -Added CD and removable drive compatability to
  274. echo Music Player
  275. echo -Added Internet
  276. echo -Changed 'Candy' theme
  277. echo.
  278. echo Visit osmiumcorp.wordpress.com/o64/versions for
  279. echo a complete version log.
  280. echo.
  281. echo [PRESS ANY KEY]
  282. pause >nul
  283. goto deskm
  284.  
  285. :settings
  286. cls
  287. echo.
  288. echo Settings
  289. echo.
  290. echo C] Themes
  291. echo P] Password Protection
  292. echo U] Change Username
  293. echo D] Delete User Account
  294. echo T] Transfer User Account
  295. echo M] Music Player
  296. echo.
  297. echo B] Back
  298. echo.
  299. choice /c:cpubdtm /n
  300. if "%errorlevel%" =="7" goto musicsetting
  301. if "%errorlevel%" =="6" goto tranuser
  302. if "%errorlevel%" =="5" goto deluser
  303. if "%errorlevel%" =="4" goto deskm
  304. if "%errorlevel%" =="3" goto rename
  305. if "%errorlevel%" =="2" goto modp
  306. if "%errorlevel%" =="1" goto colorthemes
  307. goto settings
  308.  
  309. :musicsetting
  310. call :save
  311. cls
  312. echo.
  313. echo Music Player Settings
  314. echo.
  315. if not defined wmplayerkill echo Q] Quit music when exiting music player (OFF)
  316. if "%wmplayerkill%" =="1" echo Q] Quit music when exiting music player (ON)
  317. echo.
  318. echo B] Back
  319. echo.
  320. choice /c:bq /n
  321. if "%errorlevel%" =="2" (
  322. if "%wmplayerkill%" =="1" (
  323. set wmplayerkill=
  324. goto musicsetting
  325. )
  326. if not defined wmplayerkill (
  327. set wmplayerkill=1
  328. taskkill /f /im wmplayer.exe /t >nul
  329. cls
  330. )
  331. )
  332. if "%errorlevel%" =="1" goto settings
  333. goto musicsetting
  334.  
  335. :tranuser
  336. cls
  337. echo.
  338. echo Transfer User Account
  339. echo.
  340. echo Transfer to...
  341. echo E] Existing Account
  342. echo N] New Account
  343. echo.
  344. echo B] Back
  345. echo.
  346. choice /c:enb /n
  347. if "%errorlevel%" =="3" goto settings
  348. if "%errorlevel%" =="2" goto trannew
  349. if "%errorlevel%" =="1" goto tranexist
  350. goto tranuser
  351.  
  352. :tranexist
  353. set u=
  354. cls
  355. echo.
  356. echo Transfer User Account
  357. echo.
  358. echo B] Back
  359. echo.
  360. echo --Users--
  361. cd ..
  362. dir /b
  363. echo.
  364. set /p u="Which user should your account be transfered to? "
  365. if not defined u (
  366. cd "%user%"
  367. goto tranexist
  368. )
  369. set u=%u:|=%
  370. set u=%u:/=%
  371. set u=%u:\=%
  372. set u=%u:"=%
  373. if /i "%u%" =="%user%" (
  374. echo.
  375. echo You cannot transfer your account to your account
  376. echo [PRESS ANY KEY]
  377. pause >nul
  378. cd "%user%"
  379. goto tranexist
  380. )
  381. if /i "%u%" =="B" (
  382. cd "%user%"
  383. goto tranuser
  384. )
  385. if not exist "%u%" (
  386. echo.
  387. echo This user does not exist
  388. echo [PRESS ANY KEY]
  389. pause >nul
  390. cd "%user%"
  391. goto tranexist
  392. )
  393. cd "%u%"
  394. < info.sav (
  395. set /p u=
  396. set /p p=
  397. )
  398. cd ..
  399. cd "%user%"
  400. goto tranexistpass
  401.  
  402. :tranexistpass
  403. set pass=
  404. set exist=1
  405. if not defined p goto swallowscarryingcoconuts
  406. cls
  407. echo.
  408. echo Transfer User Account
  409. echo.
  410. echo B] Back
  411. echo.
  412. echo Ask that user for permission to overwrite their
  413. echo data, in the form of their password.
  414. echo.
  415. set /p pass="Enter their password: "
  416. if not defined pass goto tranexistpass
  417. set pass=%pass:|=%
  418. if not defined pass goto tranexistpass
  419. set pass=%pass:"=%
  420. if not defined pass goto tranexistpass
  421. if /i "%pass%" =="B" (
  422. set u=
  423. set p=
  424. goto tranuser
  425. )
  426. if not "%pass%" =="%p%" (
  427. echo.
  428. echo Incorrect
  429. echo [PRESS ANY KEY]
  430. pause >nul
  431. goto tranexistpass
  432. )
  433. :swallowscarryingcoconuts
  434. cd ..
  435. if not exist "%u%" mkdir "%u%"
  436. cd "%u%"
  437. if not exist Music mkdir Music
  438. if not exist Notepad mkdir Notepad
  439. (
  440. echo.%u%
  441. if "%exist%" =="1" echo.%password%
  442. if "%new%" =="1" echo.%p%
  443. echo.%color%
  444. echo.%theme%
  445. echo.%addondest%
  446. ) > info.sav
  447. (
  448. echo.%hscore%
  449. echo.%hscorename%
  450. echo.%avscore%
  451. echo.%avcount%
  452. echo.%avtotal%
  453. ) > whackem.sav
  454. (
  455. echo.%karleon%
  456. echo.%perclick%
  457. ) > karleonclicker.sav
  458. (
  459. echo.%wmplayerkill%
  460. echo.%musicdest%
  461. ) > music.sav
  462. set exist=
  463. set new=
  464. cd ..
  465. xcopy "%cd%\%user%\Music" "%cd%\%u%\Music" /e /y >nul
  466. xcopy "%cd%\%user%\Notepad" "%cd%\%u%\Notepad" /e /y >nul
  467. cd "%user%"
  468. echo.
  469. echo The account has been successfully transfered.
  470. echo [PRESS ANY KEY]
  471. pause >nul
  472. set u=
  473. set p=
  474. goto settings
  475.  
  476. :trannew
  477. set u=
  478. set u2=
  479. cls
  480. echo.
  481. echo Transfer User Account
  482. echo.
  483. echo B] Back
  484. echo.
  485. set /p u="Enter a username for the new account: "
  486. if not defined u goto trannew
  487. if /i "%u%" =="B" goto tranuser
  488. set u=%u:|=%
  489. set u=%u:/=%
  490. set u=%u:\=%
  491. set u=%u:"=%
  492. set u2=%u: =%
  493. if not defined u2 goto trannew
  494. set u2=
  495. if /i "%u%" =="C" (
  496. echo.
  497. echo This username is prohibited
  498. echo [PRESS ANY KEY]
  499. pause >nul
  500. goto trannew
  501. )
  502. if /i "%u%" =="X" (
  503. echo.
  504. echo This username is prohibited
  505. echo [PRESS ANY KEY]
  506. pause >nul
  507. goto trannew
  508. )
  509. cd ..
  510. if exist "%u%" (
  511. echo.
  512. echo This username is already in use
  513. echo [PRESS ANY KEY]
  514. pause >nul
  515. cd "%user%"
  516. goto trannew
  517. )
  518. cd "%user%"
  519. goto trannewpass?
  520.  
  521. :trannewpass?
  522. cls
  523. echo.
  524. echo Transfer User Account
  525. echo.
  526. echo Do you want to create a password? This can be
  527. echo changed later in settings.
  528. echo.
  529. echo Y] Yes
  530. echo N] No
  531. echo.
  532. echo B] Back
  533. echo.
  534. choice /c:byn /n
  535. if "%errorlevel%" =="3" (
  536. set p=
  537. set new=1
  538. goto swallowscarryingcoconuts
  539. )
  540. if "%errorlevel%" =="2" goto trannewpass
  541. if "%errorlevel%" =="1" goto tranuser
  542. goto trannewpass?
  543.  
  544. :trannewpass
  545. set p=
  546. cls
  547. echo.
  548. echo Transfer User Account
  549. echo.
  550. echo Note any ^| or " chatacters will be removed
  551. echo from your password if included.
  552. echo.
  553. echo B] Back
  554. echo.
  555. set /p p="Enter a password for the new account: "
  556. if not defined p goto trannewpass
  557. set p=%p:|=%
  558. if not defined p goto trannewpass
  559. set p=%p:"=%
  560. if not defined p goto trannewpass
  561. set new=1
  562. goto swallowscarryingcoconuts
  563.  
  564. :deluser
  565. cd ..
  566. if not exist "%user%" goto delusererror
  567. cd "%user%"
  568. if not defined password goto deluserconfirm
  569. set deluser=
  570. cls
  571. echo.
  572. echo Delete %user%'s Account
  573. echo.
  574. echo B] Back
  575. echo.
  576. set /p deluser="Enter your password: "
  577. if not defined deluser goto deluser
  578. set deluser=%deluser:|=%
  579. if not defined deluser goto deluser
  580. set deluser=%deluser:"=%
  581. if not defined deluser goto deluser
  582. if /i "%deluser%" =="B" goto settings
  583. if not "%deluser%" =="%password%" (
  584. echo.
  585. echo Incorrect password
  586. echo [PRESS ANY KEY]
  587. pause >nul
  588. goto deluser
  589. )
  590. goto deluserconfirm
  591.  
  592. :delusererror
  593. cls
  594. echo.
  595. echo Delete %user%'s Account
  596. echo.
  597. echo Osmium 64 could not find %user%'s save file.
  598. pause >nul
  599. goto settings
  600.  
  601. :deluserconfirm
  602. cls
  603. echo.
  604. echo Delete %user%'s Account
  605. echo.
  606. echo Are you sure? (Y/N)
  607. choice /c:yn /n
  608. if "%errorlevel%" =="2" goto settings
  609. if "%errorlevel%" =="1" echo.
  610. cd ..
  611. rd /s /q "%user%" >nul
  612. echo Profile deleted
  613. echo [PRESS ANY KEY]
  614. pause >nul
  615. goto login
  616.  
  617. :rename
  618. set u=
  619. set n2=
  620. cls
  621. echo.
  622. echo Change Username
  623. echo.
  624. echo Current username: %user%
  625. echo.
  626. echo B] Back
  627. echo.
  628. set /p u=">"
  629. if not defined u goto rename
  630. if /i "%u%" =="B" goto settings
  631. set u=%u:|=%
  632. set u=%u:/=%
  633. set u=%u:\=%
  634. set u=%u:"=%
  635. set n2=%u: =%
  636. if not defined n2 goto rename
  637. set n2=
  638. if /i "%u%" =="C" (
  639. echo.
  640. echo This username is prohibited
  641. echo [PRESS ANY KEY]
  642. pause >nul
  643. goto rename
  644. )
  645. if /i "%u%" =="X" (
  646. echo.
  647. echo This username is prohibited
  648. echo [PRESS ANY KEY]
  649. pause >nul
  650. goto rename
  651. )
  652. if exist "%u%" (
  653. echo.
  654. echo This user already exists
  655. echo [PRESS ANY KEY]
  656. pause >nul
  657. goto rename
  658. )
  659. set userold=%user%
  660. set user=%u%
  661. cd ..
  662. ren "%userold%" "%user%"
  663. cd %user%
  664. set userold=
  665. call :save
  666. goto settings
  667.  
  668. :colorthemes
  669. color %color%
  670. call :save
  671. cls
  672. echo.
  673. echo Themes
  674. echo.
  675. echo C] Commodore D] Candy
  676. echo V] Vintage Grey A] Autumn
  677. echo M] Matrix P] Purple
  678. echo E] Error N] Nyan Blue
  679. echo R] Rust G] Eggnog
  680. echo W] Marble O] Original
  681. echo.
  682. echo B] Back
  683. echo.
  684. choice /c:bocvmedapwnrg /n
  685. if "%errorlevel%" =="13" (
  686. set color=f4
  687. set theme=Eggnog
  688. )
  689. if "%errorlevel%" =="12" (
  690. set color=4f
  691. set theme=Rust
  692. )
  693. if "%errorlevel%" =="11" (
  694. set color=1b
  695. set theme=Nyan Blue
  696. )
  697. if "%errorlevel%" =="10" (
  698. set color=f0
  699. set theme=Marble
  700. )
  701. if "%errorlevel%" =="9" (
  702. set color=5f
  703. set theme=Purple
  704. )
  705. if "%errorlevel%" =="8" (
  706. set color=ce
  707. set theme=Autumn
  708. )
  709. if "%errorlevel%" =="7" (
  710. set color=b1
  711. set theme=Candy
  712. )
  713. if "%errorlevel%" =="6" (
  714. set color=cf
  715. set theme=Error
  716. )
  717. if "%errorlevel%" =="5" (
  718. set color=0a
  719. set theme=Matrix
  720. )
  721. if "%errorlevel%" =="4" (
  722. set color=8a
  723. set theme=Vintage Grey
  724. )
  725. if "%errorlevel%" =="3" (
  726. set color=1f
  727. set theme=Commodore
  728. )
  729. if "%errorlevel%" =="2" (
  730. set color=0f
  731. set theme=Original
  732. )
  733. if "%errorlevel%" =="1" goto settings
  734. goto colorthemes
  735.  
  736. :modp
  737. if not defined password goto modpn
  738. cls
  739. echo.
  740. echo Password Protection
  741. echo.
  742. echo P] Change Password
  743. echo D] Disable Password
  744. echo.
  745. echo B] Back
  746. echo.
  747. choice /c:pbd /n
  748. if "%errorlevel%" =="3" goto disable
  749. if "%errorlevel%" =="2" goto settings
  750. if "%errorlevel%" =="1" goto modpc
  751. goto modp
  752.  
  753. :modpn
  754. if defined password goto modp
  755. cls
  756. echo.
  757. echo Password Protection
  758. echo.
  759. echo D] Enable Password
  760. echo.
  761. echo B] Back
  762. echo.
  763. choice /c:db /n
  764. if "%errorlevel%" =="2" goto settings
  765. if "%errorlevel%" =="1" goto cpassdesk
  766. goto modpn
  767.  
  768. :cpassdesk
  769. set password=
  770. cls
  771. echo.
  772. echo Create Password
  773. echo.
  774. echo Note any ^| or " chatacters will be removed
  775. echo from your password if included.
  776. echo.
  777. echo B] Back
  778. echo.
  779. set /p password="Enter a secure password: "
  780. if not defined password goto cpassdesk
  781. set password=%password:|=%
  782. if not defined password goto cpassdesk
  783. set password=%password:"=%
  784. if not defined password goto cpassdesk
  785. if /i "%password%" =="B" (
  786. set password=
  787. goto modp
  788. )
  789. call :save
  790. goto modp
  791.  
  792. :disable
  793. set dis=
  794. cls
  795. echo.
  796. echo Disable Password
  797. echo.
  798. echo B] Back
  799. echo.
  800. set /p dis="Enter your password: "
  801. if not defined dis goto disable
  802. set dis=%dis:|=%
  803. if /i "%dis%" =="B" goto modp
  804. if "%dis%" =="%password%" (
  805. set password=
  806. call :save
  807. goto modpn
  808. )
  809. echo.
  810. echo Incorrect password
  811. echo [PRESS ANY KEY]
  812. pause >nul
  813. goto disable
  814. )
  815. goto modn
  816.  
  817. :modpc
  818. set temp=
  819. set tempc=
  820. cls
  821. echo.
  822. echo Change Password
  823. echo.
  824. echo B] Back
  825. echo.
  826. set /p temp="Enter your password: "
  827. if not defined temp goto modpc
  828. set temp=%temp:|=%
  829. if not defined temp goto modpc
  830. set temp=%temp:"=%
  831. if not defined temp goto modpc
  832. if /i "%temp%" =="B" goto modp
  833. if not "%temp%" =="%password%" (
  834. echo Incorrect password
  835. echo [PRESS ANY KEY]
  836. pause >nul
  837. goto modpc
  838. )
  839. :tempc
  840. set tempc=
  841. cls
  842. echo.
  843. echo Change Password
  844. echo.
  845. echo Note any ^| or " chatacters will be removed
  846. echo from your password if included.
  847. echo.
  848. echo B] Back
  849. echo.
  850. set /p tempc="Enter a secure password: "
  851. if not defined tempc goto tempc
  852. set tempc=%tempc:|=%
  853. if not defined tempc goto tempc
  854. set tempc=%tempc:"=%
  855. if not defined tempc goto tempc
  856. if /i "%tempc%" =="B" goto modp
  857. set password=%tempc%
  858. call :save
  859. goto settings
  860.  
  861. :programs
  862. cls
  863. echo.
  864. echo Programs
  865. echo.
  866. echo U] Utilities
  867. echo G] Games
  868. echo A] Addons
  869. echo.
  870. echo B] Back
  871. echo.
  872. choice /c:ugba /n
  873. if "%errorlevel%" =="4" goto addons
  874. if "%errorlevel%" =="3" goto deskm
  875. if "%errorlevel%" =="2" goto games
  876. if "%errorlevel%" =="1" goto utilities
  877. goto programs
  878.  
  879. :addons
  880. set a=
  881. if not defined addondest set addondest=1
  882. call :save
  883. cd ..
  884. cd ..
  885. cd Addons
  886. mode 50,30
  887. cls
  888. echo.
  889. echo Addons
  890. echo.
  891. if "%addondest%" =="1" echo C] Change Destination (Current: Addon Folder)
  892. if "%addondest%" =="2" echo C] Change Destination (Current: DVD/CD Drive)
  893. if "%addondest%" =="3" echo C] Change Destination (Current: Removable Drive)
  894. echo O] Open Folder
  895. echo.
  896. echo B] Back
  897. echo.
  898. echo --Addons--
  899. if "%addondest%" =="1" dir /b
  900. if "%addondest%" =="2" if exist F:\ (
  901. dir F:\ /b
  902. ) else echo Insert a disc.
  903. if "%addondest%" =="3" if exist D:\ (
  904. dir D:\ /b
  905. ) else echo Insert a removable drive.
  906. echo.
  907. set /p a=">"
  908. if not defined a (
  909. cd ..
  910. cd Users
  911. cd "%user%"
  912. goto addons
  913. )
  914. set a=%a:|=%
  915. set a=%a:^=%
  916. set a=%a:/=%
  917. set a=%a:\=%
  918. set a=%a:"=%
  919. set a=%a:.bat=%
  920. if /i "%a%" =="B" (
  921. cd ..
  922. cd Users
  923. cd %user%
  924. mode 50,18
  925. goto programs
  926. )
  927. if /i "%a%" =="C" (
  928. if "%addondest%" =="1" set addondest=2
  929. if "%addondest%" =="2" set addondest=3
  930. if "%addondest%" =="3" set addondest=1
  931. cd ..
  932. cd Users
  933. cd %user%
  934. goto addons
  935. )
  936. if /i "%a%" =="O" (
  937. if "%addondest%" =="1" %systemroot%\explorer.exe "%cd%"
  938. if exist F:\ if "%addondest%" =="2" %systemroot%\explorer.exe F:\
  939. if exist D:\ if "%addondest%" =="3" %systemroot%\explorer.exe D:\
  940. cd ..
  941. cd Users
  942. cd %user%
  943. goto addons
  944. )
  945. if "%addondest%" =="1" goto addon1
  946. if "%addondest%" =="2" goto addon2
  947. if "%addondest%" =="3" goto addon3
  948. goto addons
  949. :addon3
  950. if not exist "D:\%a%".bat (
  951. echo.
  952. echo This file does not exist
  953. echo [PRESS ANY KEY]
  954. pause >nul
  955. cd ..
  956. cd Users
  957. cd %user%
  958. goto addons
  959. )
  960. call "D:\%A%".bat
  961. title Osmium 64
  962. mode 50,18
  963. color %color%
  964. goto addons
  965. :addon2
  966. if not exist "F:\%a%".bat (
  967. echo.
  968. echo This file does not exist
  969. echo [PRESS ANY KEY]
  970. pause >nul
  971. cd ..
  972. cd Users
  973. cd %user%
  974. goto addons
  975. )
  976. call "F:\%A%".bat
  977. title Osmium 64
  978. mode 50,18
  979. color %color%
  980. goto addons
  981. :addon1
  982. if not exist "%a%".bat (
  983. echo.
  984. echo This file does not exist
  985. echo [PRESS ANY KEY]
  986. pause >nul
  987. cd ..
  988. cd Users
  989. cd %user%
  990. goto addons
  991. )
  992. call "%a%".bat
  993. title Osmium 64
  994. mode 50,18
  995. color %color%
  996. goto addons
  997.  
  998. :utilities
  999. cls
  1000. echo.
  1001. echo Utilities
  1002. echo.
  1003. echo C] Calculator
  1004. echo R] Reminders
  1005. echo N] Notepad
  1006. echo M] Music Player
  1007. echo I] Internet
  1008. echo.
  1009. echo B] Back
  1010. echo.
  1011. choice /c:crbnmi /n
  1012. if "%errorlevel%" =="6" goto internet
  1013. if "%errorlevel%" =="5" goto music
  1014. if "%errorlevel%" =="4" goto name
  1015. if "%errorlevel%" =="3" goto programs
  1016. if "%errorlevel%" =="2" goto reminder
  1017. if "%errorlevel%" =="1" goto calc
  1018. goto utilities
  1019.  
  1020. :internet
  1021. set a=
  1022. cls
  1023. echo.
  1024. echo Internet
  1025. echo.
  1026. echo B] Back
  1027. echo.
  1028. set /p a="URL: www."
  1029. if not defined a goto internet
  1030. set a=www.%a%
  1031. set a=%a:|=%
  1032. if not defined a goto internet
  1033. set a=%a:"=%
  1034. if not defined a goto internet
  1035. set a2=%a: =%
  1036. if not defined a goto internet
  1037. set a2=%a:/=%
  1038. if not defined a goto internet
  1039. set a2=%a:\=%
  1040. if not defined a2 goto internet
  1041. if /i "%a%" =="www.B" goto utilities
  1042. start %a%
  1043. goto internet
  1044.  
  1045. :calc
  1046. set prob=
  1047. set sol=
  1048. cls
  1049. echo.
  1050. echo Calculator
  1051. echo.
  1052. echo B] Back
  1053. echo.
  1054. set /p prob=">"
  1055. if not defined prob goto calc
  1056. set prob=%prob:|=%
  1057. if not defined prob goto calc
  1058. set prob=%prob:"=%
  1059. if not defined prob goto calc
  1060. if /i "%prob%" =="B" goto utilities
  1061. if "%prob%" =="|" goto calc
  1062. set /a sol=%prob% >nul
  1063. echo %prob% = %sol%
  1064. echo [PRESS ANY KEY]
  1065. pause >nul
  1066. goto calc
  1067.  
  1068. :reminder
  1069. mode 50,18
  1070. cls
  1071. echo.
  1072. echo Reminders
  1073. echo.
  1074. echo D] Delete Reminders
  1075. echo C] Clear Reminders
  1076. echo A] Add Reminders
  1077. echo V] View Reminders
  1078. echo.
  1079. echo B] Back
  1080. echo.
  1081. choice /c:dcabv /n
  1082. if "%errorlevel%" =="5" goto remview
  1083. if "%errorlevel%" =="4" goto utilities
  1084. if "%errorlevel%" =="3" goto remadd
  1085. if "%errorlevel%" =="2" goto remclear
  1086. if "%errorlevel%" =="1" goto remdel
  1087. goto reminder
  1088.  
  1089. :remadd
  1090. set a=
  1091. set a2=
  1092. set b=
  1093. set b2=
  1094. cls
  1095. echo.
  1096. echo Add Reminders
  1097. echo.
  1098. echo B] Back
  1099. echo.
  1100. echo What's your reminder?
  1101. set /p a=">"
  1102. if not defined a goto remadd
  1103. set a=%a:|=%
  1104. if not defined a goto remadd
  1105. set a=%a:"=%
  1106. if not defined a goto remadd
  1107. set a2=%a: =%
  1108. if not defined a2 goto remadd
  1109. if /i "%a%" =="B" goto reminder
  1110. cd Reminders
  1111. md "%a%"
  1112. cd ..
  1113. echo.
  1114. echo Success!
  1115. echo [PRESS ANY KEY]
  1116. pause >nul
  1117. goto remadd
  1118.  
  1119. :remclear
  1120. if not exist Reminders md Reminders
  1121. cls
  1122. echo.
  1123. echo Clear Reminders
  1124. echo.
  1125. echo Are you sure you want to erase all of your
  1126. echo reminders?
  1127. echo.
  1128. echo Y] Yes
  1129. echo N] No
  1130. echo.
  1131. choice /c:yn /n
  1132. if "%errorlevel%" =="2" goto reminder
  1133. if "%errorlevel%" =="1" echo.
  1134. rd /s /q Reminders >nul
  1135. md Reminders
  1136. echo Success!
  1137. echo [PRESS ANY KEY]
  1138. pause >nul
  1139. goto reminder
  1140.  
  1141. :remdel
  1142. if not exist Reminders md Reminders
  1143. mode 50,30
  1144. set a=
  1145. set a2=
  1146. cls
  1147. echo.
  1148. echo Delete Reminders
  1149. echo.
  1150. echo B] Back
  1151. echo.
  1152. cd Reminders
  1153. dir /b
  1154. cd ..
  1155. echo.
  1156. echo Which reminder do you want to delete?
  1157. echo.
  1158. set /p a=">"
  1159. if not defined a goto remdel
  1160. set a=%a:|=%
  1161. if not defined a goto remdel
  1162. set a=%a:"=%
  1163. if not defined a goto remdel
  1164. set a2=%a: =%
  1165. if not defined a2 goto remdel
  1166. if /i "%a%" =="B" goto reminder
  1167. cd Reminders
  1168. if not exist "%a%" (
  1169. echo.
  1170. echo This reminder does not exist
  1171. echo [PRESS ANY KEY]
  1172. pause >nul
  1173. cd ..
  1174. goto remdel
  1175. )
  1176. rd /s /q "%a%" >nul
  1177. cd ..
  1178. echo.
  1179. echo Success!
  1180. echo [PRESS ANY KEY]
  1181. pause >nul
  1182. goto remdel
  1183.  
  1184. :remview
  1185. mode 50,30
  1186. cls
  1187. echo.
  1188. echo View Reminders
  1189. echo.
  1190. echo B] Back
  1191. echo.
  1192. cd Reminders
  1193. dir /b
  1194. cd ..
  1195. echo.
  1196. choice /c:b /n
  1197. if "%errorlevel%" =="1" goto reminder
  1198. goto remview
  1199.  
  1200. :music
  1201. set m=
  1202. if not defined musicdest set musicdest=1
  1203. call :save
  1204. cd Music
  1205. cls
  1206. mode 50,30
  1207. cls
  1208. echo.
  1209. echo Music Player
  1210. echo.
  1211. if "%musicdest%" =="1" echo C] Change Destination (Current: Music Folder)
  1212. if "%musicdest%" =="2" echo C] Change Destination (Current: CD)
  1213. if "%musicdest%" =="3" echo C] Change Destination (Current: Removable Drive)
  1214. echo O] Open Folder
  1215. echo.
  1216. echo B] Back
  1217. echo.
  1218. echo --Music--
  1219. if "%musicdest%" =="1" dir /b
  1220. if "%musicdest%" =="2" if exist F:\ (
  1221. dir F:\ /b
  1222. ) else echo Insert a disc.
  1223. if "%musicdest%" =="3" if exist D:\ (
  1224. dir D:\ /b
  1225. ) else echo Insert a removable drive.
  1226. echo.
  1227. set /p m=">"
  1228. if not defined m (
  1229. cd ..
  1230. goto music
  1231. )
  1232. set m=%m:|=%
  1233. set m=%m:^=%
  1234. set m=%m:/=%
  1235. set m=%m:\=%
  1236. set m=%m:"=%
  1237. set m=%m:.mp3=%
  1238. if /i "%m%" =="B" (
  1239. if "%wmplayerkill%" =="1" taskkill /f /im wmplayer.exe /t >nul
  1240. cls
  1241. cd ..
  1242. mode 50,18
  1243. goto utilities
  1244. )
  1245. if /i "%m%" =="O" (
  1246. if "%musicdest%" =="1" %systemroot%\explorer.exe "%cd%"
  1247. if exist F:\ if "%musicdest%" =="2" %systemroot%\explorer.exe "F:\"
  1248. if exist D:\ if "%musicdest%" =="3" %systemroot%\explorer.exe "D:\"
  1249. cd ..
  1250. goto music
  1251. )
  1252. if /i "%m%" =="C" (
  1253. if "%musicdest%" =="1" set musicdest=2
  1254. if "%musicdest%" =="2" set musicdest=3
  1255. if "%musicdest%" =="3" set musicdest=1
  1256. cd ..
  1257. goto music
  1258. )
  1259. if "%musicdest%" =="1" goto music1
  1260. if "%musicdest%" =="2" goto music2
  1261. if "%musicdest%" =="3" goto music3
  1262. cd ..
  1263. goto music
  1264. :music3
  1265. if not exist "D:\%m%.mp3" (
  1266. echo.
  1267. echo This file does not exist
  1268. echo If it does, convert it to mp3
  1269. echo [PRESS ANY KEY]
  1270. pause >nul
  1271. cd ..
  1272. goto music
  1273. )
  1274. start wmplayer.exe "D:\%m%.mp3\" >nul
  1275. cd ..
  1276. goto music
  1277. :music2
  1278. if not exist "F:\%m%.mp3" (
  1279. echo.
  1280. echo This file does not exist
  1281. echo If it does, convert it to mp3
  1282. echo [PRESS ANY KEY]
  1283. pause >nul
  1284. cd ..
  1285. goto music
  1286. )
  1287. start wmplayer.exe "F:\%m%.mp3\" >nul
  1288. cd ..
  1289. goto music
  1290. :music1
  1291. if not exist "%m%.mp3" (
  1292. echo.
  1293. echo This file does not exist
  1294. echo If it does, convert it to mp3
  1295. echo [PRESS ANY KEY]
  1296. pause >nul
  1297. cd ..
  1298. goto music
  1299. )
  1300. start wmplayer.exe "%cd%\%m%.mp3\" >nul
  1301. cd ..
  1302. goto music
  1303.  
  1304. :games
  1305. mode 50,18
  1306. color %color%
  1307. title Osmium 64
  1308. cls
  1309. echo.
  1310. echo Games
  1311. echo.
  1312. echo K] Karleon Clicker
  1313. echo W] Whack'em
  1314. echo.
  1315. echo B] Back
  1316. echo.
  1317. choice /c:bwk /n
  1318. if "%errorlevel%" =="3" goto karleonclicker
  1319. if "%errorlevel%" =="2" goto menu
  1320. if "%errorlevel%" =="1" goto programs
  1321. goto games
  1322.  
  1323. :name
  1324. mode 50,18
  1325. cd %user%
  1326. cd Notepad
  1327. set name=
  1328. set ext=txt
  1329. set n2=
  1330. cls
  1331. echo.
  1332. echo Notepad
  1333. echo.
  1334. echo O] Open Folder
  1335. echo.
  1336. echo B] Back
  1337. echo.
  1338. set /p name="Enter your file name: "
  1339. if not defined name goto name
  1340. set name=%name:|=%
  1341. set name=%name:"=%
  1342. set name=%name:.=%
  1343. set n2=%name: =%
  1344. if not defined n2 goto name
  1345. set n2=
  1346. if not defined name goto name
  1347. if /i "%name%" =="O" (
  1348. %systemroot%\explorer.exe "%cd%"
  1349. goto name
  1350. )
  1351. if /i "%name%" =="B" (
  1352. set ext=
  1353. set name=
  1354. mode 50,18
  1355. cd ..
  1356. goto utilities
  1357. )
  1358. goto ext
  1359.  
  1360. :ext
  1361. set ext=
  1362. set n2=
  1363. cls
  1364. echo.
  1365. echo Notepad
  1366. echo.
  1367. echo O] Open Folder
  1368. echo.
  1369. echo B] Back
  1370. echo.
  1371. set /p ext="Enter your file extension: %name%."
  1372. if not defined ext goto ext
  1373. set ext=%ext:|=%
  1374. set n2=%ext: =%
  1375. if not defined n2 goto ext
  1376. set n2=
  1377. if not defined ext goto ext
  1378. if /i "%ext%" =="O" (
  1379. %systemroot%\explorer.exe "%cd%"
  1380. goto ext
  1381. )
  1382. if /i "%ext%" =="B" goto name
  1383. goto edit
  1384.  
  1385. :edit
  1386. mode 50,30
  1387. set txt=
  1388. cls
  1389. echo.
  1390. echo Notepad
  1391. echo.
  1392. echo O] Open Folder
  1393. echo.
  1394. echo B] Back
  1395. echo.
  1396. if /i not "%ext%" =="txt" echo You are editing %name%.%ext%
  1397. if /i "%ext%" =="txt" echo You are editing %name%
  1398. echo.
  1399. if exist "%name%.%ext%" type "%name%.%ext%"
  1400. set /p txt=
  1401. if not defined txt goto edit
  1402. set txt=%txt:"=%
  1403. if /i "%txt%" =="O" (
  1404. "%systemroot%\explorer.exe" "%cd%"
  1405. goto edit
  1406. )
  1407. if /i "%txt%" =="B" goto name
  1408. (echo.^%txt%) >> "%name%.%ext%"
  1409. goto edit
  1410.  
  1411. :karleonclicker
  1412. cls
  1413. color f0
  1414. mode 50,25
  1415. title Karleon Clicker
  1416. if not defined perclick set perclick=1
  1417. if not defined karleon set karleon=0
  1418. set cheat=
  1419. echo.
  1420. echo Karleon Clicker
  1421. echo.
  1422. echo Hit ENTER to generate karleons!
  1423. echo [PRESS ANY KEY]
  1424. pause >nul
  1425. goto karleon
  1426.  
  1427. :karleon
  1428. call :save
  1429. if %karleon% gtr 499999999 goto win
  1430. set k=
  1431. cls
  1432. echo.
  1433. echo Karleon Clicker
  1434. echo.
  1435. echo N] New Game
  1436. echo.
  1437. echo B] Back
  1438. echo.
  1439. if "%cheat%" =="1" echo Cheats enabled
  1440. if "%cheat%" =="1" echo.
  1441. echo Karleon: %karleon%
  1442. echo K/Click: %perclick%
  1443. echo.
  1444. echo C] Cursor: Costs 50K - +1K per click
  1445. if %karleon% gtr 999 echo P] Printer: Costs 1,000K - +5K per click
  1446. if %karleon% gtr 4999 echo L] Laser printer: Costs 5,000K - +25K per click
  1447. if %karleon% gtr 9999 echo S] Secretary: Costs 10,000K - +50K per click
  1448. if %karleon% gtr 49999 echo M] Mint: Costs 50,000 - +250K per click
  1449. if %karleon% gtr 99999 echo F] Factory: Costs 100,000 - +500K per click
  1450. if %karleon% gtr 999999 echo W] Wormhole: Costs 1,000,000 - +10,000K per click
  1451. if %karleon% gtr 9999999 echo R] Rusty spoon: Costs 10,000,000 - +100,000K per click
  1452. echo.
  1453. set /p k=">"
  1454. if not defined k goto generate
  1455. set k=%k:|=%
  1456. set k=%k:"=%
  1457. set k=%k:^=%
  1458. if /i "%k%" =="B" goto games
  1459. if /i "%k%" =="N" (
  1460. set karleon=
  1461. set cheat=
  1462. set perclick=
  1463. set freeplay=
  1464. goto karleonclicker
  1465. )
  1466. if /i "%k%" =="UUDDLRLRBA" goto cheat
  1467. if /i "%k%" =="WWSSADADBA" goto cheat
  1468. if /i "%k%" =="C" goto cursor
  1469. if /i "%k%" =="P" goto printer
  1470. if /i "%k%" =="L" goto laser
  1471. if /i "%k%" =="S" goto secretary
  1472. if /i "%k%" =="M" goto mint
  1473. if /i "%k%" =="F" goto factory
  1474. if /i "%k%" =="W" goto wormhole
  1475. if /i "%k%" =="R" goto spoon
  1476. goto karleon
  1477.  
  1478. :generate
  1479. set /a karleon=%karleon%+%perclick%
  1480. if "%cheat%" =="1" (
  1481. if %karleon% gtr 49 (
  1482. set /a karleon=%karleon%-50
  1483. set /a perclick=%perclick%+1
  1484. )
  1485. if %karleon% gtr 999 (
  1486. set /a karleon=%karleon%-1000
  1487. set /a perclick=%perclick%+5
  1488. )
  1489. if %karleon% gtr 4999 (
  1490. set /a karleon=%karleon%-5000
  1491. set /a perclick=%perclick%+25
  1492. )
  1493. if %karleon% gtr 9999 (
  1494. set /a karleon=%karleon%-10000
  1495. set /a perclick=%perclick%+50
  1496. )
  1497. if %karleon% gtr 49999 (
  1498. set /a karleon=%karleon%-50000
  1499. set /a perclick=%perclick%+250
  1500. )
  1501. if %karleon% gtr 99999 (
  1502. set /a karleon=%karleon%-100000
  1503. set /a perclick=%perclick%+500
  1504. )
  1505. if %karleon% gtr 999999 (
  1506. set /a karleon=%karleon%-1000000
  1507. set /a perclick=%perclick%+10000
  1508. )
  1509. if %karleon% gtr 9999999 (
  1510. set /a karleon=%karleon%-10000000
  1511. set /a perclick=%perclick%+100000
  1512. )
  1513. )
  1514. goto karleon
  1515.  
  1516. :cursor
  1517. if %karleon% gtr 49 (
  1518. set /a karleon=%karleon%-50
  1519. set /a perclick=%perclick%+1
  1520. )
  1521. goto karleon
  1522.  
  1523. :printer
  1524. if %karleon% gtr 999 (
  1525. set /a karleon=%karleon%-1000
  1526. set /a perclick=%perclick%+5
  1527. )
  1528. goto karleon
  1529.  
  1530. :laser
  1531. if %karleon% gtr 4999 (
  1532. set /a karleon=%karleon%-5000
  1533. set /a perclick=%perclick%+25
  1534. )
  1535. goto karleon
  1536.  
  1537. :secretary
  1538. if %karleon% gtr 9999 (
  1539. set /a karleon=%karleon%-10000
  1540. set /a perclick=%perclick%+50
  1541. )
  1542. goto karleon
  1543.  
  1544. :mint
  1545. if %karleon% gtr 49999 (
  1546. set /a karleon=%karleon%-50000
  1547. set /a perclick=%perclick%+250
  1548. )
  1549. goto karleon
  1550.  
  1551. :factory
  1552. if %karleon% gtr 99999 (
  1553. set /a karleon=%karleon%-100000
  1554. set /a perclick=%perclick%+500
  1555. )
  1556. goto karleon
  1557.  
  1558. :wormhole
  1559. if %karleon% gtr 999999 (
  1560. set /a karleon=%karleon%-1000000
  1561. set /a perclick=%perclick%+10000
  1562. )
  1563. goto karleon
  1564.  
  1565. :spoon
  1566. if %karleon% gtr 9999999 (
  1567. set /a karleon=%karleon%-10000000
  1568. set /a perclick=%perclick%+100000
  1569. )
  1570. goto karleon
  1571.  
  1572. :cheat
  1573. if not defined cheat (
  1574. set cheat=1
  1575. goto karleon
  1576. )
  1577. if "%cheat%" =="1" set cheat=
  1578. goto karleon
  1579.  
  1580. :win
  1581. set win=
  1582. cls
  1583. echo.
  1584. echo You won!
  1585. echo You last had %karleon% karleons!
  1586. echo.
  1587. echo [PRESS ANY KEY]
  1588. pause >nul
  1589. set karleon=0
  1590. set perclick=1
  1591. set cheat=
  1592. goto karleonclicker
  1593.  
  1594. :menu
  1595. mode 40,18
  1596. color e9
  1597. title Whack'em!
  1598. if not defined hscore set hscore=0
  1599. if not defined avscore set avscore=0
  1600. if not defined avcount set avcount=0
  1601. if not defined hscorename set hscorename=BLANK
  1602. set score=
  1603. cls
  1604. echo.
  1605. echo WHACK'EM
  1606. echo.
  1607. echo P]LAY C]LEAR SCORES
  1608. echo Q]UIT S]CORES
  1609. echo.
  1610. choice /c:pqsc /n
  1611. if %errorlevel% ==4 goto clearwhackem
  1612. if %errorlevel% ==3 goto champion
  1613. if %errorlevel% ==2 goto games
  1614. if %errorlevel% ==1 goto countwhackem
  1615. goto menu
  1616.  
  1617. :clearwhackem
  1618. cls
  1619. echo.
  1620. echo CLEAR SCORES
  1621. echo.
  1622. echo S]TATS H]IGH SCORE
  1623. echo B]ACK
  1624. choice /c:shb /n
  1625. if "%errorlevel%" =="3" goto menu
  1626. if "%errorlevel%" =="2" (
  1627. set hscore=0
  1628. set hscorename=BLANK
  1629. echo.
  1630. echo HIGH SCORE CLEARED
  1631. echo [PRESS ANY KEY]
  1632. pause >nul
  1633. goto clearwhackem
  1634. )
  1635. if "%errorlevel%" =="1" (
  1636. set avscore=0
  1637. set avcount=0
  1638. set avtotal=0
  1639. echo.
  1640. echo STATS CLEARED
  1641. echo [PRESS ANY KEY]
  1642. pause >nul
  1643. goto clearwhackem
  1644. )
  1645. goto clearwhackem
  1646.  
  1647. :champion
  1648. cls
  1649. echo.
  1650. echo SCORES
  1651. echo.
  1652. echo HIGH SCORE
  1653. echo %hscore% pts. - ^%hscorename%
  1654. echo.
  1655. echo AVERAGE SCORE
  1656. echo %avscore% pts.
  1657. echo.
  1658. echo GAMES PLAYED
  1659. if "%avcount%" =="1" echo %avcount% game
  1660. if not "%avcount%" =="1" echo %avcount% games
  1661. echo.
  1662. echo [PRESS ANY KEY]
  1663. pause >nul
  1664. goto menu
  1665.  
  1666. :countwhackem
  1667. cls
  1668. echo.
  1669. echo.
  1670. echo.
  1671. echo READY
  1672. echo.
  1673. echo.
  1674. echo 3
  1675. ping localhost /n 2 >nul
  1676. cls
  1677. echo.
  1678. echo.
  1679. echo.
  1680. echo READY
  1681. echo.
  1682. echo.
  1683. echo 2
  1684. ping localhost /n 2 >nul
  1685. cls
  1686. echo.
  1687. echo.
  1688. echo.
  1689. echo READY
  1690. echo.
  1691. echo.
  1692. echo 1
  1693. ping localhost /n 2 >nul
  1694. goto display
  1695.  
  1696. :display
  1697. set time=2
  1698. set score=0
  1699. set scoreup=10
  1700. set old=
  1701. set a=
  1702. set s=
  1703. set d=
  1704. goto loop
  1705. :loopclr
  1706. set a=
  1707. set s=
  1708. set d=
  1709. :loop
  1710. if "%a%" =="**" set old=a
  1711. if "%s%" =="**" set old=s
  1712. if "%d%" =="**" set old=d
  1713. set a=
  1714. set s=
  1715. set d=
  1716. set /a rand=%random%
  1717. if "%rand%" =="0" goto loop
  1718. if "%rand%" lss "14000" (
  1719. set a=**
  1720. if "%old%" =="a" goto loopclr
  1721. goto display2
  1722. )
  1723. if "%rand%" lss "25000" (
  1724. set s=**
  1725. if "%old%" =="s" goto loopclr
  1726. goto display2
  1727. )
  1728. if "%rand%" lss "32000" (
  1729. set d=**
  1730. if "%old%" =="d" goto loopclr
  1731. goto display2
  1732. )
  1733. if "%rand%" gtr "31999" goto loop
  1734. :display2
  1735. if "%score%" gtr "150" set time=1
  1736. cls
  1737. echo.
  1738. echo SCORE: %score%
  1739. echo.
  1740. echo P]AUSE Q]UIT
  1741. echo.
  1742. echo [A] %a%
  1743. echo [S] %s%
  1744. echo [D] %d%
  1745. echo.
  1746. choice /c:asdzpq /t %time% /d z /n
  1747. if "%errorlevel%" =="6" goto lose
  1748. if "%errorlevel%" =="5" goto whackempause
  1749. if "%errorlevel%" =="4" goto lose
  1750. if "%errorlevel%" =="3" goto d
  1751. if "%errorlevel%" =="2" goto s
  1752. if "%errorlevel%" =="1" goto a
  1753. goto loop
  1754.  
  1755. :whackempause
  1756. cls
  1757. echo.
  1758. echo GAME PAUSED
  1759. echo.
  1760. echo [PRESS ANY KEY]
  1761. pause >nul
  1762. goto loop
  1763.  
  1764. :a
  1765. if "%a%" =="**" (
  1766. set /a score=%score%+%scoreup%
  1767. goto loop
  1768. )
  1769. if not "%a%" =="**" goto lose
  1770. goto loop
  1771.  
  1772. :s
  1773. if "%s%" =="**" (
  1774. set /a score=%score%+%scoreup%
  1775. goto loop
  1776. )
  1777. if not "%s%" =="**" goto lose
  1778. goto loop
  1779.  
  1780. :d
  1781. if "%d%" =="**" (
  1782. set /a score=%score%+%scoreup%
  1783. goto loop
  1784. )
  1785. if not "%d%" =="**" goto lose
  1786. goto loop
  1787.  
  1788. :lose
  1789. color cf
  1790. if %score% gtr %hscore% goto highscorewhackem
  1791. set /a avtotal=%avtotal%+%score%
  1792. set /a avcount=%avcount%+1
  1793. set /a avscore=%avtotal%/%avcount%
  1794. call :save
  1795. cls
  1796. echo.
  1797. echo GAME OVER
  1798. echo.
  1799. echo YOUR SCORE WAS %score%
  1800. echo.
  1801. echo R]ETRY
  1802. echo Q]UIT
  1803. echo.
  1804. choice /c:rq /n
  1805. if "%errorlevel%" =="2" goto menu
  1806. if "%errorlevel%" =="1" (
  1807. color e9
  1808. goto countwhackem
  1809. )
  1810. goto lose
  1811.  
  1812. :highscorewhackem
  1813. set hscore=%score%
  1814. set /a avtotal=%avtotal%+%score%
  1815. set /a avcount=%avcount%+1
  1816. set /a avscore=%avtotal%/%avcount%
  1817. set score=
  1818. call :save
  1819. cls
  1820. echo.
  1821. echo GAME OVER
  1822. echo.
  1823. echo YOU BEAT THE HIGH SCORE!
  1824. echo.
  1825. set /p hscorename="HIGH SCORE NAME? "
  1826. if not defined hscorename goto highscorewhackem
  1827. set hscorename=%hscorename:|=%
  1828. set hscorename=%hscorename:"=%
  1829. set hscorename=%hscorename:^=%
  1830. echo.
  1831. echo R]ETRY
  1832. echo Q]UIT
  1833. echo.
  1834. choice /c:rq /n
  1835. if "%errorlevel%" =="2" goto menu
  1836. if "%errorlevel%" =="1" (
  1837. color e9
  1838. goto countwhackem
  1839. )
  1840. goto highscorewhackem
  1841.  
  1842. :save
  1843. if not exist Music mkdir Music
  1844. if not exist Notepad mkdir Notepad
  1845. if not exist Reminders mkdir Reminders
  1846. (
  1847. echo.%user%
  1848. echo.%password%
  1849. echo.%color%
  1850. echo.%theme%
  1851. echo.%addondest%
  1852. ) > info.sav
  1853. (
  1854. echo.%hscore%
  1855. echo.%hscorename%
  1856. echo.%avscore%
  1857. echo.%avcount%
  1858. echo.%avtotal%
  1859. ) > whackem.sav
  1860. (
  1861. echo.%karleon%
  1862. echo.%perclick%
  1863. ) > karleonclicker.sav
  1864. (
  1865. echo.%wmplayerkill%
  1866. echo.%musicdest%
  1867. ) > music.sav
  1868. exit /b
Add Comment
Please, Sign In to add comment