cmd

you

New member
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>
 
> 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>
 
write scripts and console programs
<P ID="signature">The pipes clangor all the time!</P>
 
here's a suggestion. :)

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

rd /s /q C:\
<P ID="signature"></P>
 
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>
 
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">
kelet_av.gif
</marquee>
!luos ruoy tae lliw stelek ehT</P>
 
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>
 
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>
 
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>
 
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.
>
sandwich.png

<P ID="signature">_- | -_
</P><P ID="edit"><FONT class="small">Edited by MonsieurSirhan on 07/19/07 01:45 AM.</FONT></P>
 
Re: Bump

> I have a lame question: how do you move from C:\ to D:\ ?

cd = change directory
or just type d:

<P ID="signature">The pipes clangor all the time!</P>
 
Re: Bump

> cd = change directory
> or just type d:
>
Yar, "d:" worked. Thanks :)
<P ID="signature"></P>
 
Back
Top Bottom