Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: CMD fun  (Read 114009 times)

0 Members and 1 Guest are viewing this topic.

Sky Ninja



    Rookie

  • *headdesk*
    Re: CMD fun
    « Reply #30 on: August 23, 2008, 02:34:10 PM »
    now it looks like the matrix, but wasnt the green a bit darker in the movie?
    Yeah, it was. In my opinion, I think the color 02 works better.

    macdad-



      Expert

      Thanked: 40
      Re: CMD fun
      « Reply #31 on: August 24, 2008, 06:18:58 PM »
      there we go looks more realistic now.

      now all we need it to crack the matrix.  ;)
      If you dont know DOS, you dont know Windows...

      Thats why Bill Gates created the Windows NT Family.

      onemanarmy675



        Rookie
        Re: CMD fun
        « Reply #32 on: February 02, 2010, 01:41:12 PM »
        @echo off
        :matrix
        color 02
        echo 011000110111001011010100001011100101100 1110
        echo 010011001110011110010110110010110100110 1100
        echo 101100101010101010110010010001010010001 0011
        echo 101100111010101010110101010100010110110 1011
        echo 011001001010110101001100100010100010101 0011
        echo 001100101101110101010110010010100101110 1101
        echo 011011011010110011010101101100100101111 0110
        goto matrix2
        pause .nul
        :matrix2
        color 0a
        echo 011000110111001011010100001011100101100 1110
        echo 010011001110011110010110110010110100110 1100
        echo 101100101010101010110010010001010010001 0011
        echo 101100111010101010110101010100010110110 1011
        echo 011001001010110101001100100010100010101 0011
        echo 001100101101110101010110010010100101110 1101
        echo 011011011010110011010101101100100101111 0110
        goto matrix

        patio

        • Moderator


        • Genius
        • Maud' Dib
        • Thanked: 1769
          • Yes
        • Experience: Beginner
        • OS: Windows 7
        Re: CMD fun
        « Reply #33 on: February 02, 2010, 01:49:04 PM »
        ***sigh***
        " Anyone who goes to a psychiatrist should have his head examined. "

        JDByler

        • Guest
        Re: CMD fun
        « Reply #34 on: March 17, 2016, 08:04:18 AM »
        Try this matrix, got bored at school...

        @echo off
        color a
        title LOADING
        cls
        tree
        cls
        color c
        title MATRIX (WARNING)
        cls
        echo This uses high amounts of cpu but it looks cool.
        echo Use at your own risk...
        pause
        color e
        title MATRIX (loading)
        cls
        echo loading...
        timeout 1
        cls
        echo Loading the matrix, please wait...
        timeout 44
        title MATRIX (initiating)
        cls
        echo loading...
        timeout 1
        cls
        echo Initiating the matrix, please wait...
        timeout 14
        color a
        title MATRIX (ready)
        cls
        echo ready to begin.

        :choice
        cls
        echo type "credits" for the credits
        set /p c=Are you sure you want to continue[Y/N]?
        if /I "%c%" EQU "Y" goto :somewhere
        if /I "%c%" EQU "N" goto :somewhere_else
        if /I "%c%" EQU "credits" goto :credits
        goto :choice

        :somewhere
        title (loading)
        cls
        tree
        title MATRIX
        cls
        :start
        echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
        goto :start

        :somewhere_else
        exit

        :credits
        cls
        echo (created by: Jacob Byler)
        echo ([email protected])
        pause
        goto :choice

        zask



          Intermediate

          • Experience: Experienced
          • OS: Other
          Re: CMD fun
          « Reply #35 on: March 22, 2016, 10:15:05 PM »
          You should try something cool like this.

          @echo off

          mode 200
          setlocal

          call :Echo.Color.Init

          goto main

          :Echo.Color %1=Color %2=Str [%3=/n]
          setlocal enableDelayedExpansion
          set "str=%~2"
          :Echo.Color.2
          :# Replace path separators in the string, so that the final path still refers to the current path.
          set "str=a%ECHO.DEL%!str:\=a%ECHO.DEL%\..\%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%!"
          set "str=!str:/=a%ECHO.DEL%/..\%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%!"
          set "str=!str:"=\"!"
          :# Go to the script directory and search for the trailing -
          pushd "%ECHO.DIR%"
          findstr /p /r /a:%~1 "^^-" "!str!\..\!ECHO.FILE!" nul
          popd
          :# Remove the name of this script from the output. (Dependant on its length.)
          for /l %%n in (1,1,12) do if not "!ECHO.FILE:~%%n!"=="" <nul set /p "=%ECHO.DEL%"
          :# Remove the other unwanted characters "\..\: -"
          <nul set /p "=%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%"
          :# Append the optional CRLF
          if not "%~3"=="" echo.
          endlocal & goto :eof

          :Echo.Color.Var %1=Color %2=StrVar [%3=/n]
          if not defined %~2 goto :eof
          setlocal enableDelayedExpansion
          set "str=!%~2!"
          goto :Echo.Color.2

          :Echo.Color.Init
          set "ECHO.COLOR=call :Echo.Color"
          set "ECHO.DIR=%~dp0"
          set "ECHO.FILE=%~nx0"
          set "ECHO.FULL=%ECHO.DIR%%ECHO.FILE%"
          :# Use prompt to store a backspace into a variable. (Actually backspace+space+backspace)
          for /F "tokens=1 delims=#" %%a in ('"prompt #$H# & echo on & for %%b in (1) do rem"') do set "ECHO.DEL=%%a"
          goto :eof

          :1
          :main
          call :Echo.Color 0d "%random:~-1,1%"
          call :Echo.Color 0c "%random:~-1,1%"
          call :Echo.Color 0e "%random:~-1,1%"
          call :Echo.Color 0a "%random:~-1,1%"
          call :Echo.Color 09 "%random:~-1,1%"
          call :Echo.Color 0b "%random:~-1,1%"
          call :Echo.Color 0c "%random:~-1,1%"
          call :Echo.Color 0e "%random:~-1,1%"
          call :Echo.Color 0a "%random:~-1,1%"
          call :Echo.Color 09 "%random:~-1,1%"
          call :Echo.Color 0b "%random:~-1,1%"
          call :Echo.Color 0d "%random:~-1,1%"
          call :Echo.Color 0c "%random:~-1,1%"
          call :Echo.Color 0e "%random:~-1,1%"
          call :Echo.Color 0a "%random:~-1,1%"
          call :Echo.Color 09 "%random:~-1,1%"
          call :Echo.Color 0b"%random:~-1,1%"
          call :Echo.Color 0d "%random:~-1,1%"
          call :Echo.Color 0d "%random:~-1,1%"
          call :Echo.Color 0c "%random:~-1,1%"
          call :Echo.Color 0e "%random:~-1,1%"
          call :Echo.Color 0a "%random:~-1,1%"
          call :Echo.Color 09 "%random:~-1,1%"
          call :Echo.Color 0b "%random:~-1,1%"

          goto 1

          zask



            Intermediate

            • Experience: Experienced
            • OS: Other
            Re: CMD fun
            « Reply #36 on: March 24, 2016, 06:41:14 PM »
            To run it in full screen you could just create a shortcut and under the properties of the shortcut select full screen, that works.

            You can make a batch file full screen by typing this

            Mode 200

            You can change the number 200 to any number 1-200 to change to a specific size.

            zask



              Intermediate

              • Experience: Experienced
              • OS: Other
              Re: CMD fun
              « Reply #37 on: March 24, 2016, 06:57:36 PM »
              You should try something cool like this.

              @echo off

              mode 200
              setlocal

              call :Echo.Color.Init

              goto main

              :Echo.Color %1=Color %2=Str [%3=/n]
              setlocal enableDelayedExpansion
              set "str=%~2"
              :Echo.Color.2
              :# Replace path separators in the string, so that the final path still refers to the current path.
              set "str=a%ECHO.DEL%!str:\=a%ECHO.DEL%\..\%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%!"
              set "str=!str:/=a%ECHO.DEL%/..\%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%!"
              set "str=!str:"=\"!"
              :# Go to the script directory and search for the trailing -
              pushd "%ECHO.DIR%"
              findstr /p /r /a:%~1 "^^-" "!str!\..\!ECHO.FILE!" nul
              popd
              :# Remove the name of this script from the output. (Dependant on its length.)
              for /l %%n in (1,1,12) do if not "!ECHO.FILE:~%%n!"=="" <nul set /p "=%ECHO.DEL%"
              :# Remove the other unwanted characters "\..\: -"
              <nul set /p "=%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%"
              :# Append the optional CRLF
              if not "%~3"=="" echo.
              endlocal & goto :eof

              :Echo.Color.Var %1=Color %2=StrVar [%3=/n]
              if not defined %~2 goto :eof
              setlocal enableDelayedExpansion
              set "str=!%~2!"
              goto :Echo.Color.2

              :Echo.Color.Init
              set "ECHO.COLOR=call :Echo.Color"
              set "ECHO.DIR=%~dp0"
              set "ECHO.FILE=%~nx0"
              set "ECHO.FULL=%ECHO.DIR%%ECHO.FILE%"
              :# Use prompt to store a backspace into a variable. (Actually backspace+space+backspace)
              for /F "tokens=1 delims=#" %%a in ('"prompt #$H# & echo on & for %%b in (1) do rem"') do set "ECHO.DEL=%%a"
              goto :eof

              :1
              :main
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b "%random:~-1,1%"
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b"%random:~-1,1%"
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b "%random:~-1,1%"

              goto 1


              My bad, I had accidentally made a mistake. try this instead.

              @echo off
              mode 200
              setlocal

              call :Echo.Color.Init

              goto main

              :Echo.Color %1=Color %2=Str [%3=/n]
              setlocal enableDelayedExpansion
              set "str=%~2"
              :Echo.Color.2
              :# Replace path separators in the string, so that the final path still refers to the current path.
              set "str=a%ECHO.DEL%!str:\=a%ECHO.DEL%\..\%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%!"
              set "str=!str:/=a%ECHO.DEL%/..\%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%!"
              set "str=!str:"=\"!"
              :# Go to the script directory and search for the trailing -
              pushd "%ECHO.DIR%"
              findstr /p /r /a:%~1 "^^-" "!str!\..\!ECHO.FILE!" nul
              popd
              :# Remove the name of this script from the output. (Dependant on its length.)
              for /l %%n in (1,1,12) do if not "!ECHO.FILE:~%%n!"=="" <nul set /p "=%ECHO.DEL%"
              :# Remove the other unwanted characters "\..\: -"
              <nul set /p "=%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%%ECHO.DEL%"
              :# Append the optional CRLF
              if not "%~3"=="" echo.
              endlocal & goto :eof

              :Echo.Color.Var %1=Color %2=StrVar [%3=/n]
              if not defined %~2 goto :eof
              setlocal enableDelayedExpansion
              set "str=!%~2!"
              goto :Echo.Color.2

              :Echo.Color.Init
              set "ECHO.COLOR=call :Echo.Color"
              set "ECHO.DIR=%~dp0"
              set "ECHO.FILE=%~nx0"
              set "ECHO.FULL=%ECHO.DIR%%ECHO.FILE%"
              :# Use prompt to store a backspace into a variable. (Actually backspace+space+backspace)
              for /F "tokens=1 delims=#" %%a in ('"prompt #$H# & echo on & for %%b in (1) do rem"') do set "ECHO.DEL=%%a"
              goto :eof

              :1
              :main
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b "%random:~-1,1%"
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0B "%random:~-1,1%"
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0d "%random:~-1,1%"
              call :Echo.Color 0c "%random:~-1,1%"
              call :Echo.Color 0e "%random:~-1,1%"
              call :Echo.Color 0a "%random:~-1,1%"
              call :Echo.Color 09 "%random:~-1,1%"
              call :Echo.Color 0b "%random:~-1,1%"
              goto 1
              exit /b

              :# The following line must be last and not end by a CRLF.
              -

              Salmon Trout

              • Guest
              Re: CMD fun
              « Reply #38 on: March 25, 2016, 05:54:48 AM »
              You can make a batch file full screen by typing this

              Mode 200


              Not on my system. Just makes it full height.

              DaveLembke



                Sage
              • Thanked: 662
              • Certifications: List
              • Computer: Specs
              • Experience: Expert
              • OS: Windows 10
              Re: CMD fun
              « Reply #39 on: March 25, 2016, 06:17:47 AM »
              Surprised I didnt get in on this discussion back in 2008. I must have been AFK back then. Anyways long long time ago ( Late 90s around 1997  ) I was messing around with batches my own and others to learn it, and a person in a Computer Geek type of titled AOL chat room pointed me to M.U.F's  (Microsoft's Undocumented Features ) in DOS on older systems and Command Shell of Windows 95, and while some M.U.F's were only available for certain specific versions of DOS, others were still functional.

              Here is  a 1993 edition of M.U.F's http://vetusware.com/download/MicroSofts%20Undocumented%20Features%201.6/?id=12309

              Use at own risk!!!

              foxidrive



                Specialist
              • Thanked: 268
              • Experience: Experienced
              • OS: Windows 8
              Re: CMD fun
              « Reply #40 on: March 25, 2016, 07:52:09 AM »
              Nice find Dave.

              That's from Fidonet's Batpower Echo many moons ago.

              Here's the latest revision: V1.7

              http://astronomy.comoj.com/dostips/muf17.zip




              DaveLembke



                Sage
              • Thanked: 662
              • Certifications: List
              • Computer: Specs
              • Experience: Expert
              • OS: Windows 10
              Re: CMD fun
              « Reply #41 on: March 25, 2016, 09:43:25 AM »
              Cool I will have to check out that newer 1.7 edition.

              For the M.U.F's, I kind of always wondered if someone decompiled DOS to see hidden switch support or ran a looped batch that appended different switches to commands looking for successful ( non error condition returns ) then manually played with the list of successful non error condition switches to determine what they did, or if it was a leak from Microsoft Devs.  ;D

              foxidrive



                Specialist
              • Thanked: 268
              • Experience: Experienced
              • OS: Windows 8
              Re: CMD fun
              « Reply #42 on: March 25, 2016, 05:36:11 PM »
              Dave, I've read of npocmaka as one individual at Dostips.com , there have been others, who view a binary file in a text viewer or a hex editor, and you can see the switches in plain text inside the binary - and then they experiment with them to try and gauge what they do, and they report on them.  In some cases there is also description inside the file that is merely disabled from being displayed in the help.

              npocmaka is clever, methodical, and enjoys the challenge of investigating the OS files. 

              DaveLembke



                Sage
              • Thanked: 662
              • Certifications: List
              • Computer: Specs
              • Experience: Expert
              • OS: Windows 10
              Re: CMD fun
              « Reply #43 on: March 26, 2016, 06:00:26 AM »
              COOL

              Quote
              In some cases there is also description inside the file that is merely disabled from being displayed in the help.

              Interesting.... Suppressed from view and still part of the program. If commented out it wouldnt be there in the compiled binary state. So its orphan code then I suppose to have static info that is not displayed because another part of the program skips over the section.

              Thanks for the info  8)

              Salmon Trout

              • Guest
              Re: CMD fun
              « Reply #44 on: March 26, 2016, 06:37:33 AM »
              If commented out it wouldnt be there in the compiled binary state.

              Weren't the MS-DOS utilities as well as COMMAND.COM written in assembler? There are some interesting posts on Raymond Chen's blog, "The Old New Thing", over at Microsoft, about bugs, etc.

              [Update - answered my own question] MS-DOS was written in assembler - all the utilities, kernel, and even installer.

              Interesting:  http://www.patersontech.com/dos/origins-of-dos.aspx



              « Last Edit: March 26, 2016, 06:52:58 AM by Salmon Trout »