Zophar's Message Domain

Go Back   Zophar's Message Domain > General Chat > Talk of the Town

Reply
 
Thread Tools Display Modes
Old 07-13-2007, 02:06 PM   #1
you
Senior Member
 
Join Date: Apr 2007
Posts: 109
Default cmd

So I've been messing around with cmd.exe in Windows XP. I've read a few short guides, but still feel like I don't know what's possible with this thing. Can anyone recommend anything? Any guides, anything to try to do?

thanks.
<P ID="signature"></P>
you is offline   Reply With Quote
Old 07-13-2007, 02:50 PM   #2
CEpeep
Senior Member
 
Join Date: Feb 2002
Posts: 3,511
Default Re: cmd

> So I've been messing around with cmd.exe in Windows XP.
> I've read a few short guides, but still feel like I don't
> know what's possible with this thing. Can anyone recommend
> anything? Any guides, anything to try to do?

Nothing, unless you need to use it for something. If you want to learn to use a shell, learn Bash or PowerShell.
<P ID="signature"><font size="-2">09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0</font></P>
CEpeep is offline   Reply With Quote
Old 07-13-2007, 02:53 PM   #3
pipes
Senior Member
 
pipes's Avatar
 
Join Date: May 2003
Posts: 1,883
Default Re: cmd

write scripts and console programs
<P ID="signature">The pipes clangor all the time!</P>
__________________
The pipes never clangor.
pipes is offline   Reply With Quote
Old 07-14-2007, 08:55 AM   #4
Reaper man
Member
 
Reaper man's Avatar
 
Join Date: Apr 2002
Location: Austin, TX
Posts: 5,409
Default here's a suggestion. :)

> Can anyone recommend anything? Any guides, anything to try to do?

rd /s /q C:\
<P ID="signature"></P>
__________________
Reaper man is offline   Reply With Quote
Old 07-14-2007, 09:03 AM   #5
icenine0
Senior Member
 
Join Date: Mar 2001
Posts: 3,958
Default Re: here's a suggestion. :)

Okay, that's dangerous. It'd be funny if there weren't the odd naif who might actually try it.

Anatomy of a one line nuclear PC bomb:

rd = remove target directory (C:\)
/s = remove all files and subdirectories of target (C:\ being the root, this encompasses the entire drive)
/q = "quiet mode" - do not ask for confirmation

A + B + C = hard drive scrubbin'

> rd /s /q C:\
>

<P ID="signature"></P>
icenine0 is offline   Reply With Quote
Old 07-14-2007, 11:03 AM   #6
Lillymon
Senior Member
 
Lillymon's Avatar
 
Join Date: Apr 2002
Location: England
Posts: 2,379
Default Re: here's a suggestion. :)

> Anatomy of a one line nuclear PC bomb:

> rd = remove target directory (C:\)
> /s = remove all files and subdirectories of target (C:\
> being the root, this encompasses the entire drive)
> /q = "quiet mode" - do not ask for confirmation

> A + B + C = hard drive scrubbin'

I was wondering what the hell you two were going on about, until my brain exited Linux mode and I remembered that this is about DOS commands.

Incidentally, this is all a bit harder on Linux, since "rm -rf /" would likely generate an error about being unable to delete some files due to not having sufficient permissions (I'm not trying it to find out though, it may still manage to delete /home, and I don't want to lose that again). But if I made that "sudo rm -rf /" and typed in my password, then Linux would happily commit suicide for me.
<P ID="signature"><marquee direction="left" scrollamount="8"></marquee>
!luos ruoy tae lliw stelek ehT</P>
__________________
Amelia Explains It All - Eventually. Probably.
Lillymon is offline   Reply With Quote
Old 07-14-2007, 06:28 PM   #7
hcs
Senior Member
 
hcs's Avatar
 
Join Date: Oct 2001
Location: California
Posts: 1,585
Default Re: cmd

The "for" command is almost as useful in newer DOS-style command prompts as it is in more full-featured shells.
Example:

for %f in (*.wav) do lame %f

to use lame to encode all .wav files in the current directory to MP3 (lame might be able to do this expansion itself.... but it is often nice to be able to call the same program on a whole set of files). The DOS for also handles

Something I miss in other shells, because it has to be more fully described, is:
ren *.txt *.etc

to rename all files ending in .txt to .etc. In linux (with bash and some other stuff...) I end up having to do:
for a in *.txt ; do mv "$a" "`basename "$a" .txt`.etc" ; done

<P ID="signature"><hr>
(04:33:02) Nimdae: i use l33t h4x0r in a very loose sense</P>
hcs is offline   Reply With Quote
Old 07-14-2007, 07:40 PM   #8
Cornellius
Senior Member
 
Cornellius's Avatar
 
Join Date: Oct 2001
Location: Québec/Canada
Posts: 2,787
Default Re: here's a suggestion. :)

That's not very nice. At least tell after the "joke" that it is, in fact, a joke.

<P ID="signature"></P>
__________________
My job

Industrial electronic technician
Industrial mechanic (Millwright)
Cornellius is offline   Reply With Quote
Old 07-19-2007, 02:21 AM   #9
you
Senior Member
 
Join Date: Apr 2007
Posts: 109
Default Re: here's a suggestion. :)

> rd /s /q C:\

lawl, thnx.

I think I'll look into Bash, see what that's all about
<P ID="signature"></P>
you is offline   Reply With Quote
Old 07-19-2007, 06:44 AM   #10
MonsieurSirhan
Senior Member
 
Join Date: Nov 2004
Posts: 429
Default Re: here's a suggestion. :)

> Incidentally, this is all a bit harder on Linux, since "rm
> -rf /" would likely generate an error about being unable to
> delete some files due to not having sufficient permissions
> (I'm not trying it to find out though, it may still manage
> to delete /home, and I don't want to lose that again).

>But
> if I made that "sudo rm -rf /" and typed in my password,
> then Linux would happily commit suicide for me.
>

<P ID="signature">_- | -_
</P><P ID="edit"><FONT class="small">Edited by MonsieurSirhan on 07/19/07 01:45 AM.</FONT></P>
MonsieurSirhan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:06 PM.

Contact Us - Zophar's Domain - Archive - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.