think tank forum

technology » Windows CLI

DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
After much deliberation, Windows is finally starting to behave I want it:

C:\Documents and Settings\Administrator>ipconfig /all | find "IP"
Windows IP Configuration
IP Routing Enabled. . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.30.94
IP Address. . . . . . . . . . . . : 192.168.30.93
IP Address. . . . . . . . . . . . : 192.168.30.92
IP Address. . . . . . . . . . . . : 192.168.30.91
IP Address. . . . . . . . . . . . : 192.168.30.90
IP Address. . . . . . . . . . . . : 192.168.30.89
IP Address. . . . . . . . . . . . : 192.168.30.88
IP Address. . . . . . . . . . . . : 192.168.30.87
IP Address. . . . . . . . . . . . : 192.168.30.86
IP Address. . . . . . . . . . . . : 192.168.30.85
IP Address. . . . . . . . . . . . : 192.168.30.84
IP Address. . . . . . . . . . . . : 192.168.30.83
IP Address. . . . . . . . . . . . : 192.168.30.82

More unix-like. hehehe. Post all of your shortcut CLI-t commands here.
asemisldkfj's avatar
15 years ago
link
asemisldkfj
the law is no protection
I despise the Windows command line. all I use it for is ipconfig and ping.
Weasley's avatar
15 years ago
link
Weasley
20 x 10 living
same

-Weasley
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
I gotta use it from time to time though :(
Carpetsmoker's avatar
15 years ago
link
Carpetsmoker
Martin
> I despise the Windows command line. all I use it for is ipconfig and ping.

Indeed, I tried many times to get a grip on it, I've even tried using tcsh and bash on Windows, and using all the UNIX commandline tools -- I never managed to unsuck the Windows command line.

One thing I hate more on Windows than the commandline is scripting, I use sh.exe scripting because batch scripting is underpowered, and VB scripting retarded ... I hate it because I'm always messing with things like slashes/backslashes drive letters, ect.
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
Anyone know how to bind a series of IP addresses really quickly via CLI?
ozntz's avatar
15 years ago
link
ozntz
toooooooooooooooooooooooooooooooooo
you are prob a fan of netsh then

http://technet.microsoft.com/en-us/library/cc785383.aspx
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
I'm not a fan of windows. So ... no. someone needs to Axe this thread. It's going nowhere.
 
15 years ago
link
dbrown
>batch scripting is underpowered
untrue! see:
http://thedailywtf.com/Articles/Stupid-Coding … of-Pi.aspx
asemisldkfj's avatar
15 years ago
link
asemisldkfj
the law is no protection
only good thing I have to say about the Windows CLI is that cmd.exe looks pretty nice when you change the default font to Lucida Console instead of that gross default font.
asemisldkfj's avatar
15 years ago
link
asemisldkfj
the law is no protection
know what blows my mind? that you can't resize cmd.exe horizonally.
 
15 years ago
link
dbrown
@asemi: 80 cols should be enough for anyone...
couldn't resist, i agree with you though.
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
http://sourceforge.net/projects/console
dannyp's avatar
15 years ago
link
dannyp
dʎuuɐp
you can't use the mouse to resize but you can change these values to change the horizontal width [if you didn't know, and you can save this as a default].

properties -> layout
screen buffer size: 80
windows size: 80

I second ozntz: use netsh!

What commands are you guys familiar with in windows CLI?

I use these fairly often:

arp [-a|-d]
nbtstat [-n|-R]
getmac
gpresult /R > grouppol.%COMPUTERNAME%.txt
systeminfo > %COMPUTERNAME%.txt
netstat
nslookup
lucas's avatar
15 years ago
link
lucas
i ❤ demo
WINDOWS POWERSHELL
dannyp's avatar
15 years ago
link
dannyp
dʎuuɐp
comes with windows 7 pro. the integrated scripting environment is nice i guess.

here's the guide for windows powershell:
http://www.microsoft.com/technet/scriptcenter … fault.mspx
lucas's avatar
15 years ago
r1, link
lucas
i ❤ demo
i like how it has `ls` in addition to `dir`. :) it makes life easier for posix-heads.
dannyp's avatar
15 years ago
link
dannyp
dʎuuɐp
sucks that it's just an alias though for get-childitem, see "get-alias ls".
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
Fuck Powershell :)
lucas's avatar
15 years ago
link
lucas
i ❤ demo
whoa.. long time no see, dgr
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
Yea I missed you guys.
lucas's avatar
15 years ago
link
lucas
i ❤ demo
where have you been?
DaGr8Gatzby's avatar
15 years ago
link
DaGr8Gatzby
Drunk by Myself
In Powershell.
lucas's avatar
15 years ago
link
lucas
i ❤ demo
what's wrong with powershell?

it has nice tab-completion and you can easily paste with a right-click.
nny's avatar
15 years ago
link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
meh at the end of the day... it's windows... and they are about 20-30 years behind the curve in the server market. with the sole exception of active directory... which is right on par with all the other 20 year old solutions that are leading the market.
DaGr8Gatzby's avatar
14 years ago
link
DaGr8Gatzby
Drunk by Myself
I was looking for this one:

> systeminfo | find "Up Time"
System Up Time: 10 Days, 1 Hours, 55 Minutes, 34 Seconds