Visar inlägg med etikett cmd. Visa alla inlägg
Visar inlägg med etikett cmd. Visa alla inlägg

onsdag 23 maj 2012

Running services and shared folders


Show all services
sc query type= service

All running services
net start

Computers in same network
net view

Shared folders on computer_name
net view \\computer_name /all


måndag 10 januari 2011

Search for text in subdirs with find and grep

Search for the string "require" in all ruby files (extension .rb).

\usr\wbin\find . -name "*.rb"|xargs grep "require"

tisdag 9 november 2010

Command window here

On Windows 7:

Use SHIFT+right_click in Windows Explorer to get a lot more features. For example "Open command window here".

fredag 29 januari 2010

Registry Keys

Display version of Internet Explorer installed on the current system:

cmd /k reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version

fredag 8 januari 2010

Cscript

"cscript" is used for running java scripts from command line.

Microsoft (R) Windows Script Host Version 5.7

fredag 25 september 2009

Search for files in subdirs

How to search for all Nant build files in sub directories:
>dir /s /b *.build

torsdag 24 september 2009

onsdag 16 september 2009

Monitor network interfaces and routes

Write at command line:
> route print