Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / What can you do with command prompt...?

Author
Message
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 02:34

Just wondering, cuz all i know how to do is:
*Check your Ip
*Ping Websites
*Print Text Documents

Cuz thats all i ever found out.....What can you do with CMD PRMT?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 18th Aug 2009 02:55
It's useful if you're writing an app that outputs data to the console and it crashes because then the output isn't lost instantly.

Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 03:13
Quote: "to the console and it crashes "


Console?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Mahoney
17
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Aug 2009 03:16
Quote: "Console?"


As in the cmd console. You've never programmed for Windows (as in cmd-line apps), have you?

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 03:17 Edited at: 18th Aug 2009 03:18
Nope,100% NOOB When it comes to this stuff
I'm doing my best to learn.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 04:28
So what else can you do?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 18th Aug 2009 04:29
Quote: "So what else can you do?"

The same thing you can do with every application...
TRY TO TAKE OVER THE WORLD!!!

I have a devious mind.
ShaunRW
DBPro Developer
17
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 18th Aug 2009 04:37
console = command prompt window.

Everybody knows the console exist just for this command
color f0


Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 18th Aug 2009 04:48
Must... RESIST...... urge... to... RUN... COMMAND!!!

I have a devious mind.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 04:55
lol can you make a text document with it?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
heyufool1
16
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 18th Aug 2009 04:58 Edited at: 18th Aug 2009 05:00
type this in and see what happens (Make sure you save everything first):

lol

Use Google first... it's not rocket surgery!
Mahoney
17
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Aug 2009 05:09 Edited at: 18th Aug 2009 05:10
It has many, very useful, uses! (.bat files being my personal favorite)

.bat files are a major use of the console/command prompt. You can use them to set up a list of commands that you might use often. I, for instance, use it to backup .sav files from my R4. To do so, I made a text file that contains this:



Then, I renamed the file as "DS Save Backup.bat". Now, with a simple double-click, I can backup all of my DS and DS emulator saves.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 05:18
Heyufool - Dude....

Mahony - COOL, Thats a great use, i guess i got a lot to learn lol.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 18th Aug 2009 05:26
@Mahoney - You can reduce a lot of that if you know how to use variables


Senior Web Developer - Nokia
heyufool1
16
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 18th Aug 2009 05:37
Quote: "Heyufool - Dude...."

Wait did you use it? I thought it was pretty obvious what it did.

Use Google first... it's not rocket surgery!
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 05:39
no, i knew what it did and i did not run it.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 05:40
when i say "print" in cmd, it tries to print a document....help???

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Mahoney
17
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Aug 2009 05:40
Quote: "@Mahoney - You can reduce a lot of that if you know how to use variables"


I didn't know you could use variables with .bat files. Thanks.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Aug 2009 07:51 Edited at: 18th Aug 2009 08:10
If you type "help" you can see a list of all the commands it recognizes. These are just the DOS commands... not any .exe or .com file that can be ran on your computer. If the PATH is set it can run any .exe or .com file from any directory as if the .exe or .com file itself is in your current working directory.

Here's the list:


It has a lot of old DOS command (directory listing, copying files, making directories, changing file attributes, and reading text files with type) and some new commands like title and verify.

Here's my computer path settings:


This means any .exe or .com file that's located in the windows directory, windows system32 directory, and the directories that universal extractor use can be ran from any directory on my computer via the command prompt.

You can still create bat files the old fashioned way by typing out (without quotes) "COPY CON TEST.BAT" then write the bat file you want and hitting F6 to save the file.

Each command on that list will tell you what each one does and the syntax it uses by typing out the command name and /?

The one thing you don't want to type is "FORMAT C:".

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Aug 2009 09:22
If I knew linux commands as well as I knew a DOS console, I'd be an uber nerd.

Speaking of consoles, I had a C++ class where we had to use VI to program. It sucked.

[url="http://dbcc.zimnox.com"][/url]
bobbel
16
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 18th Aug 2009 09:58
i made some kind of disco program in dos, it made the screen go flickering, pretty fun

Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 18th Aug 2009 15:45
Use 'echo' not print.
You can do anything in a command prompt you can do in the GUI (Well, at least in XP and below, I'm not sure about Vista/Win7)

puppyofkosh
18
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 18th Aug 2009 16:52
netsend!
Mr Z
17
Years of Service
User Offline
Joined: 27th Oct 2007
Location:
Posted: 18th Aug 2009 17:41
If you ever need to shutdown the shell to do something (has happened to me) it is very good to have. Some things can also, is you know what you are doing, be done faster with a command prompt. For example, I think you can delete all jpeg images in the directory you are in with this command:

Which is way faster then manually selecting them all (then of course you do not often need to do that at all, lol, but my point remains).

"Operator! Give me the number for 911!"
- Homer J. Simpson
n008
18
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 18th Aug 2009 17:57
Yeah, wildcards are pretty useful for mass deletion and such.

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 18th Aug 2009 18:30
You can also use wildcards to specify a pattern...



Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 20:08 Edited at: 18th Aug 2009 20:11
Quote: "Use 'echo' not print"


Yeah - Took me about all night to figure that out myself....

So what good are wild cards again?(srry i dont follow what it means...)

How would i accept input in my batch file(like y/n)?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Mahoney
17
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Aug 2009 20:16
Quote: "So what good are wild cards again?(srry i dont follow what it means...)"


Wildcards are, well, just like the name said: they're like wild-cards in a card game. They can be anything. copy *.jpg means "copy [anything].jpg"

Just read this guide.

http://commandwindows.com/batch.htm

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th Aug 2009 20:17
Ah, thanks this is very useful.

kk, Reading now....

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Aug 2009 00:07
Yeah, That was SUPER Useful....So has anyone written anything exeptional? I'm Writing a Batch that will accept the name of a web site, Ping it to find the ip of the site, Output that Ip to a Text file, And call Internet explorer and use the Ip Instead Of the "www" name, as I like to call it. This might seem dumb but its the only way around cass tech's New Proxy server(Darn, theyve never had one before!!! ); it only blocks the "www" name - not the Ip - so its of particular use to me! think thats amazing, but i'm still writing it with the few commands i know........

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Dextro
20
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 19th Aug 2009 01:04
When I'm not in my home computer, and there aren't any debuggers and I don't have a connection to the internet, I usually find Debug to be a pretty useful application for analyzing misc files (midis, some wavs, etc).
Not very useful for analyzing exe's (unless you want to check out the headers), and you can't load a program (or file) bigger than 64k.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Aug 2009 01:09
Quote: "to be a pretty useful application for analyzing misc files (midis, some wavs, etc). "


Cool! Say, What can you do with the data in a midi?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
thenerd
16
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 19th Aug 2009 01:25
look at it.


forever loading...
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Aug 2009 01:34
awwww.....sadly you cant edit the contents of a midi..... that'd be great tho.

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
zeroSlave
15
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 19th Aug 2009 01:45
DOS was my friend when I got my first computer. It was a Tandy with DOS and qbasic on it. I had lots of fun with it. I had two books. "BASIC programming." & a couple "DOS" manuals from my uncle that he got at his job. Made pong in qbasic over 17 years ago!

DOS is the "cd\" of my computer experience!

There's something in this room that makes you can't speak well.
Dextro
20
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 19th Aug 2009 01:51 Edited at: 19th Aug 2009 01:54
Well, sometimes it could be quite useful. For example, if you need to detect if there's volume coming in from a mic realtime, in DBPro, you could record small segments, make memblocks from those segments, and look for for hex values representing variations in volume (for example, anything higher than 80h (128d) represents volume higher than 0).
You can make a sequencer program in DBPro using memblocks, mapping a midi file and interpret it's contents.

If you want to learn about bitmap files, and you don't have an active connection to the net, you can fire up debug, and load a bitmap. There you can check the headers, etc.

Edit:
You can change hex values with debug, thus writing the changes to the file.
Of course using Debug is a very archaic way to see the contents of a binary file, but sometimes it could be useful.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Aug 2009 15:24
Quote: "Well, sometimes it could be quite useful. For example, if you need to detect if there's volume coming in from a mic realtime, in DBPro, you could record small segments, make memblocks from those segments, and look for for hex values representing variations in volume (for example, anything higher than 80h (128d) represents volume higher than 0).
You can make a sequencer program in DBPro using memblocks, mapping a midi file and interpret it's contents.

If you want to learn about bitmap files, and you don't have an active connection to the net, you can fire up debug, and load a bitmap. There you can check the headers, etc.

Edit:
You can change hex values with debug, thus writing the changes to the file.
Of course using Debug is a very archaic way to see the contents of a binary file, but sometimes it could be useful. "



INTERESTING.......The first part of what you said.....Do i hear a hint at "voice commands"?...........cool, i'll have to play around with that, who knows maybe i'll stumble across somthing amazing!...............

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Aug 2009 07:57
All this talk reminded me of a computer repair shop I saw the other day in town, it was called Dos Boot. I found it rather creative, thought somewhat confusing to the germans I bet.

[url="http://dbcc.zimnox.com"][/url]

Login to post a reply

Server time is: 2025-05-26 05:32:26
Your offset time is: 2025-05-26 05:32:26