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

Author Topic: CMD fun  (Read 114645 times)

0 Members and 1 Guest are viewing this topic.

paudashlake

  • Guest
CMD fun
« on: June 14, 2008, 08:38:20 AM »
What are some fun things and tricks you can do in command prompt?  I feel like having a little fun with the mostly unused feature!

thx

 ;D ;D ;D ;D ;D ;D

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: CMD fun
« Reply #1 on: June 14, 2008, 08:48:28 AM »
Code: [Select]
msg * Hello %username%, I have developed my own consciousness! Have that run on startup   ::) ::)

Schop

  • Guest
Re: CMD fun
« Reply #2 on: June 14, 2008, 09:22:01 AM »
Sorry, I'm horribly boring ATM but.. why not include color 0A an some random binary with just a few human readable lines in between. display the DIR tree of your C:\windows or so in the process. Let it all run for half a minute and then end with paudashlake's message :P

Should get any non-geek rattled at boot time.

(edit)
*censored*, now I caught myself trying. Problem is i don't know how to efficiently create random binary lines without typing them manually in the code first

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: CMD fun
« Reply #3 on: June 15, 2008, 03:50:11 AM »
Code: [Select]
@echo off
:1
cls
color c0
color 00
color 10
color 20
color 30
color 40
color 50
color 60
color 70
color 80
color 90
color a0
color b0
color c0
color d0
color e0
color f0
goto :1
This looks pretty cool.

Schop

  • Guest
Re: CMD fun
« Reply #4 on: June 15, 2008, 06:44:44 AM »
Is it possible to run a batch file full screen? I have tried the most horrible way imaginable to do so which was running it with a VBS script followed by an alt-enter sendkeys but.. it didn't even work.
would be cool to have such a startup script run fullscreen immediately
Also, the tree command gives some nice confusing output to the non geek, is there a way to make it change color like your code WHILE it runs?

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: CMD fun
« Reply #5 on: June 15, 2008, 06:59:21 AM »
Quote
is there a way to make it change color like your code WHILE it runs?
Nope. That's like asking a batch file to print something while you are saving it to the desktop.  :P
Quote
Is it possible to run a batch file full screen? I
Not that I know of...
You could have a look at the Mode command though.

Code: [Select]
mode 200,200

Schop

  • Guest
Re: CMD fun
« Reply #6 on: June 15, 2008, 07:01:19 AM »
Tnx for the quick answer.
Unfortunate, but kinda expected. As your example indicates  ;D

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: CMD fun
« Reply #7 on: June 15, 2008, 07:03:01 AM »
Heh, it's like trying to drink from a glass while you're filling it up  ;D

Schop

  • Guest
Re: CMD fun
« Reply #8 on: June 15, 2008, 07:09:57 AM »
No no!, THAT's perfectly possible   ;)

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: CMD fun
« Reply #9 on: June 15, 2008, 07:10:14 AM »
There is a sleep command that comes with the Win2003 Resource Kit or you can make do with the poor man's ping command:

Code: [Select]
@echo off

for %%a in (A B C D E F 0 1 2 3 4 5 6 7 8 9) do (
for %%b in (A B C D E F 0 1 2 3 4 5 6 7 8 9) do (
color %%a%%b
echo All Your Chameleon Supplies Here
ping -n 3 127.0.0.1 > nul
)
)

Maybe this will give you some ideas. 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: CMD fun
« Reply #10 on: June 15, 2008, 07:13:14 AM »
Code: [Select]
@echo off
:1
for %%a in (A B C D E F 0 1 2 3 4 5 6 7 8 9) do (
for %%b in (A B C D E F 0 1 2 3 4 5 6 7 8 9) do (
color %%a%%b
)
)
goto :1
This looks pretty....

Schop

  • Guest
Re: CMD fun
« Reply #11 on: June 15, 2008, 07:20:57 AM »
Is it possible to output characters to predefined rows/columns, or do you just need spaces and enters to get that effect?
could be the start of some simple command prompt graphics..

Jacob



    Hopeful

    Thanked: 1
    • Experience: Expert
    • OS: Windows XP
    Re: CMD fun
    « Reply #12 on: June 15, 2008, 08:12:39 AM »
    To run it in full screen you could just create a shortcut and under the properties of the shortcut select full screen, that works.

    Schop

    • Guest
    Re: CMD fun
    « Reply #13 on: June 15, 2008, 08:15:08 AM »
    Oh sweet, I kinda assumed that wouldn't work for the command shell :S

    Jacob



      Hopeful

      Thanked: 1
      • Experience: Expert
      • OS: Windows XP
      Re: CMD fun
      « Reply #14 on: June 15, 2008, 08:37:07 AM »
      Oh sweet, I kinda assumed that wouldn't work for the command shell :S
      Glad i was of help :)