, Windows. MS-DOS , . NT, Windows 2000 Windows Server 2003, , MS-DOS , (NT Virtual DOS Machine, NTVDM), . cmd.exe, Start -> Run. , Start -> All Programs -> Accessories -> Command Prompt.
, , . , . . -, .
- ( , ) . .
, , (&, |). :
1 & 2
1 2;
1 && 2
1 2.
. > . Report.txt dir :
dir> Report.txt
, cmd.exe. - , . setlocal, endlocal set.
. ,
, /?. , .
, . , shutdown /? | more, , , .
, exit.
?
:
, shutdown taskkill;
net ipconfig;
tasklist systeminfo;
dir, mkdir, copy;
defrag diskpart;
(Active Directories) addrep dsadd;
, , , . .
.
, systeminfo tasklist. Windows Server 2003, . , , systeminfo . /s . , TESTSERVER :
systeminfo /s TESTSERVER
tasklist , .
tasklist , . /v , , / , dll-. openfiles . Windows oh.exe, , :
openfiles /local on
, :
openfiles
openfiles /query /v , , . - .
Windows Server 2003 , , . shutdown. - :
/s ;
/ ;
/ ;
/f ;
/ ;
/I .
, , (Shutdown Event Tracker), , . , /d.
taskkill, kill *nix, . tasklist , . /pid, , /im . 1000 1240:
taskkill /pid 1000 /pid 1240
defrag. FAT, FAT32 NTFS. Defrag , . :
defrag [ -a j [ -f ] [ -v ] [ -? ]
- , -f , , -v . , 15% .
fdisk Windows Server 2003. diskpart, . , , , . diskpart -, . - Scriptl.txt:
diskpart /s Scriptl.txt
- . , ,
create partition logical size=2048
. ipconfig, netstat. , , .
ipconfig , /all, . /renew .
, - , netstat, , , , . , / (PID), . , .
, . , , , , , , , .
dsquery, . ( -attr). -scope, -subtree, -onelevel, -base , -filter .
dsmod . , . TestUser :
dsmod user
"CN=TestUser,CN=Users,DC=bigtex,DC=net
" -pwd Uf@tfmgerelt -mustchpwd yes
dsmove . -newname -newparent .
. deltree, , rmdir /s.
copy
del
dir
find
move
mkdir
rmdir
tree
: [HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\ Controf\Session\ Manager\Environment] PROMPT (REG_EXPAND_SZ) :
$ I;
$D ;
$G >;
$1_ <;
$N ;
$ ;
$Q =;
$ ;
$V Windows;
$$ $.
.
Tab, : [HKEY_CURRENT_USER \Software \Microsoft \Command Processor]
CompletionChar 9, Tab, . , , Tab, Windows .
: [HKEY_CURRENT_USER\Software\Microsof t\Command Processor]
DefaultCoior. -F0 , IE - .
: [HKEY_CLASSES_ROOT \Directory \Shell]
CommandPrompt -> Command". Default Command cmd.exe /k cd "%1".
Default Command Prompt Open Command Prompt".
, Open Command Prompt, .
, . . . /?, .