Scrigroup - Documente si articole

Username / Parola inexistente      

Home Documente Upload Resurse Alte limbi doc  


AccessAdobe photoshopAlgoritmiAutocadBaze de dateC
C sharpCalculatoareCorel drawDot netExcelFox pro
FrontpageHardwareHtmlInternetJavaLinux
MatlabMs dosPascalPhpPower pointRetele calculatoare
SqlTutorialsWebdesignWindowsWordXml

Comenzi dos

calculatoare

+ Font mai mare | - Font mai mic



DOCUMENTE SIMILARE

Trimite pe Messenger
CCD versus CMOS – sonzori de imagine
SISTEMUL INFORMATIONAL
Guvernarea electronica si economia digitala
Sortare si cautare
Lucrare de atestat informatica Oceanele Terrei
CAIET DE PRACTICA - CONTABILITATE DE GESTIUNE
Schemele logice (organigrama)
Administrarea privilegiilor Oracle9I
Masurile valorilor centrale - Biostatistica
ARBORI BINARI DE CAUTARE


Comenzi dos

VER = “versiunea”




Display the current operating system version. Afiseaza versiunea curenta a sistemului de operare.

Syntax VER Folosim sintaxa VER
Use ver to find specific operating systems like this: @ECHO OFF :: Win9x checks :::::::::::: VER |find /i 'Windows 95' >NUL IF NOT ERRORLEVEL 1 GOTO W9598ME VER |find /i 'Windows 98' >NUL IF NOT ERRORLEVEL 1 GOTO W9598ME VER |find /i 'Windows Millennium' >NUL IF NOT ERRORLEVEL 1 GOTO W9598ME :: NT/XP checks ::::::::::: pentru a gasi sisteme de operare specifice, astfel: @ ECHO OFF:: win9x controale :::::::::::: VER | find / i 'Windows 95'> nul daca nu este ERRORLEVEL 1 du-te la W9598ME VER | Gasiti / i 'Windows 98'> nul daca nu este ERRORLEVEL 1 du-te la W9598ME VER | find / i ', Windows Millennium'> nul daca nu este ERRORLEVEL 1 du-te la W9598ME:: NT / XP controale ::::::::::::
VER | find 'XP' > nul IF %errorlevel% EQU 0 GOTO s_win_XP VER | find '2000' > nul IF %errorlevel% EQU 0 GOTO s_win_2000 VER | find 'NT' > nul IF %errorlevel% EQU 0 GOTO s_win_NT ECHO Unknown OS ! VER | gasi 'XP'> nul IF% errorlevel% EQU 0 goto s_win_XP VER | gasi '2000'> nul IF% errorlevel% EQU 0 goto s_win_2000 VER | gasi 'NT'> nul IF% errorlevel% EQU 0 goto s_win_NT ECHO Necunoscut Sistem de operare! GOTO :EOF :: Win9x commands :::::::::::: :W9598ME ECHO Win9x commands go here GOTO :EOF :W98 ECHO Win98 commands go here GOTO :EOF :: NT/XP commands :::::::::::: :s_win_XP ECHO XP commands go here goto :eof :s_win_2000 ECHO WIN2K commands go here goto :eof :s_win_NT ECHO NT4 commands go here goto :eof :EOF (End-of-file) Goto: EOF:: win9x comenzi ::::::::::::: W9598ME ECHO win9x comenzi mergeti aici goto: EOF: W98 ECHO comenzi win98 merge du-te aici: EOF:: NT / XP comenzi ::::: :::::::: S_win_XP ECHO XP comenzi merge du-te aici: eof: s_win_2000 ECHO comenzi win2k merge du-te aici: eof: s_win_NT ECHO NT4 comenzi merge du-te aici: eof: EOF (End-of-file)

Service Pack Version

Bugs Bugs

The VER command reports the version of CMD.exe, so if for example you run the Win XP version of CMD under NT 4 then the VER command will return: VER de comanda rapoarte de versiunea de cmd.exe, de exemplu, deci, daca se executa versiunea de Win XP CMD sub NT 4, atunci VER comanda va returna:

Microsoft Windows XP [Version 4.0.1381] Microsoft Windows XP [Version 4.0.1381]

TIP =”continut”

Display the contents of a text file or files. Afiseaza continutul unui fisier text sau fisiere.

Syntax TYPE [ drive pathname (s) Sintaxa TIP [disc:] calea (s)

If more than one file is specified the filenames are included in the output. Daca mai mult de un fisier este specificata de numele de fisiere sunt incluse in datele de iesire.
If a wildcard is used the filenames are not displayed. Daca un wildcard-ul este folosit numele de fisiere nu sunt afisate.

Output can be redirected into a new file: De iesire poate fi redirectionat intr-un nou fisier:

TYPE file.txt > Newfile.txt TIP file.txt> Newfile.txt

Output can be appended to an existing file: De iesire poate fi adaugat la un fisier existent:

TYPE file.txt >> ExistingFile.txt TIP file.txt>> ExistingFile.txt

To do the same with user console input : Pentru a face acelasi lucru cu consola de intrare de utilizator:

TYPE CON > Newfile.txt CON TIP> Newfile.txt

This will require a CTRL - Z to indicate end of file. Acest lucru va necesita o CTRL - Z pentru a indica sfarsitul fisierului.

When using redirection to SORT a file the TYPE command is used implicitly Cand redirectionarea pentru a sorta folosind un fisier de tip de comanda este utilizat implicit
For example: De exemplu:

SORT < MyFile.txt SORT <MyFile.txt

If you TYPE a Unicode text file, the output will be ANSI. Daca tastati un fisier text Unicode, de iesire va fi ANSI.
eg: de exemplu:
TYPE UnicodeFile.txt > ANSIFile.txt TIP UnicodeFile.txt> ANSIFile.txt

To convert multiple Unicode files to ASCII try this script Pentru a converti mai multe fisiere Unicode pentru a incerca acest script ASCII

@echo off @ echo off
ren *.txt *.txx ren *. txt *. txx
for %%G in (*.txx) do (TYPE %%G >%%~nG.txt) pentru G in%% (*. txx) face (tip G%%>%% ~ nG.txt)
echo del *.txx echo del *. txx

'There are few more impressive sights than a Scotsman on the make' - Sir James Barrie 'Exista cateva aparitii mai impresionanta decat o face pe Scotsman' - Sir James Barrie

Related Commands: Cuvinte Comenzi:

FOR /F PENTRU / F
SORT SORT
List - Text Display and Search Tool ( Win 2K ResKit ) List - afisare de text si de instrument de cautare (Win 2k ResKit)

Verify =”verificati “

To check that files are saved to disk correctly; the system can re-read the disk when saving and verify (compare) with the data in memory. Pentru a verifica faptul ca fisierele sunt salvate pe disc in mod corect; sistemul poate re-citire de disc, atunci cand si de economisire a verifica (comparati) cu datele din memorie.

Syntax VERIFY [ON | OFF] Sintaxa verifica [ON | OFF]

By default the CMD shell has verify OFF In mod implicit, CMD coaja a verifica OFF
Windows Explorer will always copy with verify ON Windows Explorer se va verifica intotdeauna copie de pe

Copying files can be up to twice as fast with verify OFF. Copierea fisierelor poate fi de pana la de doua ori la fel de repede verifica cu OFF.

VERIFY without a parameter will display the current setting. Verifica fara un parametru va afisa configuratia actuala.

'VERIFY dummy_text' will set %ERRORLEVEL% to 1 'Verificati dummy_text' va seta% ERRORLEVEL% la 1

'Women might be able to fake orgasms. But men can fake whole relationships.' 'Femeile ar putea fi in masura sa fake orgasms. Dar oamenii pot fake relatiile de ansamblu'. - Sharon Stone -- Sharon Stone

Related Commands: Cuvinte Comenzi:

MOVE - Move files from one folder to another Move - Mutare fisiere de la un folder de pe un alt

Equivalent Linux BASH commands : Echivalent Linux Bash comenzi:

cksum - Print CRC checksum and byte counts cksum - Print CRC de control si de octet conteaza

Vol =”volum”

Display the volume label of a disk. Afisarea eticheta de volum a unui disc.

Syntax VOL [ drive Sintaxa vol [disc:]

If they exist, VOL will display both the disk label and serial number. In cazul in care acestea exista, vol va afisa atat eticheta de disc si numarul de serie.

Related Commands: Cuvinte Comenzi:

LABEL - Edit the volume label of a disk ETICHETA - Editare de eticheta de volum a unui disc
BootCFG - Edit Boot.ini settings. Bootcfg - Editati setarile Boot.ini.

Equivalent Linux BASH commands
Echivalent Linux Bash comenzi:

hostname - Print or set system name hostname - Print sau set nume de sistem
uname - Print system information uname - Print sistem de informatii

WMIC.exe

Windows Management Instrumentation Command. E o   comanda din Instrumentatia de management Windows.
Read a huge range of information about local or remote computers. Citeste o mare gama de informatii despre local sau la distanta de calculatoare. Also provides a way to make configuration changes to multiple remote machines. Prevede, de asemenea, un mod de a face modificari in configuratia de mai multe masini de la distanta.

Syntax Retrieve information about <Alias> WMIC [ global_switches ] [/locale:ms_409] < alias > [ options ] [ format ] Interactive mode: WMIC Aliases: ALIAS - Access local system aliases [CALL] BASEBOARD - Base board management (motherboard or system board) BIOS - BIOS management (Basic input/output services) BOOTCONFIG - Boot configuration CDROM - CD-ROM COMPUTERSYSTEM - Computer system [CALL/SET] CPU - CPU CSPRODUCT - Computer system product information from SMBIOS. Sintaxa Recuperati informatii despre <Alias>: WMIC [global_switches] [/ localizare: ms_409] <alias> [optiuni] [format] modul interactiv de: WMIC Alias: alias - sistem de acces local aliasuri [CERERE] BASEBOARD - Baza de bord de gestiune (placa de baza sau sistem de bord) de BIOS - BIOS-ul de management (de baza de intrare / iesire servicii) BOOTCONFIG - CDROM-ul de configurare pentru boot - CD-ROM-ul COMPUTERSYSTEM - sistem de computer [CALL / SET] Procesor - Procesor CSPRODUCT - Calculator de la sistemul de informatii despre produse SMBIOS. DATAFILE - DataFiles [CALL] DCOMAPP - DCOM Applications. DATAFILE - DataFiles [CERERE] DCOMAPP - Aplicatii DCOM. DESKTOP - User's Desktop DESKTOPMONITOR - Desktop Monitor DEVICEMEMORYADDRESS - Device memory addresses DISKDRIVE - Physical disk drive DISKQUOTA - Disk space usage for NTFS volumes.[SET] DMACHANNEL - Direct memory access (DMA) channel ENVIRONMENT - System environment settings [SET] FSDIR - Filesystem directory entry [CALL] GROUP - Group account [CALL] IDECONTROLLER - IDE Controller IRQ - Interrupt request line JOB - Jobs scheduled using the schedule service.[CALL] LOADORDER - System services that define execution dependencies. Desktop - desktopul utilizatorului DESKTOPMONITOR - Monitorul de DEVICEMEMORYADDRESS Spatiul de lucru - Dispozitiv de memorie adrese DISKDRIVE - unitatea de disc fizic DiskQuota - Spatiul de pe disc de utilizare pentru volumele NTFS. [SET] DMACHANNEL - acces direct la memorie (DMA) canal de mediu - mediu sistem de setarile [SET] FSDIR - Sistem de Fisiere directorul de intrare [CERERE] GROUP - Grup de cont [CERERE] IDECONTROLLER - IDE Controller IRQ - cerere de linie loc de munca - Locuri de munca programate folosind programul de serviciu. [CERERE] LOADORDER - servicii de sistem care definesc executarea de dependente. LOGICALDISK - Local storage devices [CALL/SET] LOGON - LOGON Sessions. LOGICALDISK - Local dispozitive de stocare [CALL / SET] LOGON - Sesiuni LOGON. MEMCACHE - Cache memory MEMLOGICAL - System memory, layout and availability MEMPHYSICAL - Physical memory management NETCLIENT - Network Client management. Memcache - Memorie cache MEMLOGICAL - memorie de sistem, layout si disponibilitate MEMPHYSICAL - memorie fizica de management NETCLIENT - Reteaua de management de clienti. NETLOGIN - Network login information for a particular user. NETLOGIN - Reteaua de informatii de login pentru un anumit utilizator. NETPROTOCOL - Protocols (and their network characteristics). NETPROTOCOL - Protocoale (si caracteristicile lor de retea). NETUSE - Active network connection. NETUSE - active de retea de conectare. NIC - Network Interface Controller (NIC) NICCONFIG - Network adapter. NIC - Network Controller Interface (NIC) NICCONFIG - adaptor de retea. [CALL] NTDOMAIN - NT Domain. [CERERE] NTDOMAIN - NT Domeniu. [SET] NTEVENT - NT Event Log. [SET] NTEVENT - NT Event Log. NTEVENTLOG - NT eventlog file [CALL/SET] ONBOARDDEVICE - Common adapter devices built into the motherboard. NTEVENTLOG - NT eventlog fisier [CALL / SET] ONBOARDDEVICE - comune adaptor de dispozitive construit in placa de baza. OS - Operating System/s [CALL/SET] PAGEFILE - Virtual memory file swapping PAGEFILESET - Page file settings [SET] PARTITION - Partitioned areas of a physical disk. Sistem de operare - Sistemul de operare / s [CALL / SET] PAGEFILE - Virtual memory fisier schimbarea PAGEFILESET - Pagina fisier de setari [SET] PARTITION - Partitioned a unei zone de discul fizic. PORT - I/O ports PORTCONNECTOR - Physical connection ports PRINTER - Printer device [CALL/SET] PRINTERCONFIG - Printer device configuration PRINTJOB - Print job [CALL] PROCESS - Processes [CALL]* PRODUCT - Windows Installer [CALL] QFE - Quick Fix Engineering (patches) QUOTASETTING - Setting information for disk quotas on a volume. PORT - porturile I / O PORTCONNECTOR - conexiune fizica porturi de imprimanta - dispozitiv de imprimanta [CALL / SET] PRINTERCONFIG - dispozitiv de configurare imprimanta PRINTJOB - Print de locuri de munca [CERERE] PROCESUL - Procese [CERERE] * PRODUS - Windows Installer [CERERE] qfe - Quick Fix Inginerie (patch-uri) QUOTASETTING - Stabilirea de informatii pentru cote de disc, pe un volum. [SET] REGISTRY - Computer system registry [SET] SCSICONTROLLER - SCSI Controller [CALL] SERVER - Server information SERVICE - Service application [CALL] SHARE - Shared resourcees [CALL] SOFTWAREELEMENT - Elements of a software product* SOFTWAREFEATURE - Subsets of SoftwareElement. [SET] REGISTRY - Calculator sistem de registry [SET] SCSICONTROLLER - SCSI Controller [CERERE] Server - Server serviciu de informatii - Serviciul aplicare [CERERE] SHARE - comun resourcees [CERERE] SOFTWAREELEMENT - Elemente de un produs software * SOFTWAREFEATURE - SoftwareElement de subseturi. [CALL]* SOUNDDEV - Sound Devices STARTUP - Commands that run automatically when users logon SYSACCOUNT - System account SYSDRIVER - System driver for a base service. [CERERE] * SOUNDDEV - Dispozitive de sunet de pornire - Comenzi care se executa automat atunci cand utilizatorii fac Log on SYSACCOUNT - Sistemul de cont SYSDRIVER - Sistemul de driver pentru o baza de serviciu. [CALL] SYSTEMENCLOSURE - Physical system enclosure SYSTEMSLOT - Physical connection points including ports, slots and peripherals, and proprietary connections points. [CERERE] SYSTEMENCLOSURE - Fizica sistem camerei SYSTEMSLOT - puncte de conexiune fizica, inclusiv porturi, sloturi si periferice, precum si de proprietate, puncte de conexiuni. TAPEDRIVE - Tape drives TEMPERATURE - Temperature sensor (electronic thermometer). TAPEDRIVE - benzi temperature - senzor de temperatura (electronice Thermometer). TIMEZONE - Time zone data UPS - Uninterruptible power supply (UPS) USERACCOUNT - User accounts [CALL/SET] VOLTAGE - Voltage sensor (electronic voltmeter) data VOLUME - Local storage volume [CALL/SET] VOLUMEQUOTASETTING - Associates the disk quota setting with a specific disk volume. TIMEZONE - Zona de timp date UPS - Uninterruptible power supply (UPS) USERACCOUNT - Conturile de utilizator [CALL / SET] tensiune - senzor de tensiune (voltmeter electronice) de date VOLUM - Local volum de stocare [CALL / SET] VOLUMEQUOTASETTING - Asociatii de disc cu o cota de stabilire specifice de disc de volum. [SET] WMISET - WMI service operational parameters [SET] New aliases in Windows 2003: MEMORYCHIP - Memory chip information. [SET] WMISET - WMI de servicii operationale parametrii [SET] Noua aliasuri in Windows 2003: MEMORYCHIP - Memorie chip de informatii. RDACCOUNT - Remote Desktop connection permission [CALL] RDNIC - Remote Desktop connection on a specific network adapter [CALL/SET] RDPERMISSIONS - Permissions to a specific Remote Desktop connection [CALL] RDTOGGLE - Turn Remote Desktop listener on or off remotely[CALL] RECOVEROS - Blue Screen Information [SET] SHADOWCOPY - Shadow copy management [CALL] SHADOWSTORAGE - Shadow copy storage areas [CALL/SET] VOLUMEUSERQUOTA - Per user storage volume quotas [SET] RDACCOUNT - Remote Desktop Connection permisiunea [CERERE] RDNIC - Remote Desktop Connection pe un adaptor de retea specifice [CALL / SET] RDPERMISSIONS - Permisiuni pentru un anumit Remote Desktop Connection [CERERE] RDTOGGLE - Viraj Remote Desktop ascultator sau dezactiva la distanta [CERERE] RECOVEROS -- Ecran albastru de informare [SET] SHADOWCOPY - Shadow Copy management [CERERE] SHADOWSTORAGE - Shadow Copy zonele de depozitare [CALL / SET] VOLUMEUSERQUOTA - per utilizator volumul contingentelor de stocare [SET]

Options Optiuni



By default an alias will return a standard LIST of information, you can also choose to GET one or more specific properties. In mod implicit un alias va returna o lista de informatii standard, puteti alege de asemenea sa obtineti unul sau mai multe proprietati specifice.

Configuration changes can be made, where indicated above with: [CALL or SET ] Configuratia de modificari pot fi facute, in cazul in care este indicat mai sus cu: [CALL sau set]

The CREATE and DELETE options allow you to change the WMI schema itself. Creare si DELETE optiuni va permit sa schimbati WMI schema de sine.

alias alias LIST [BRIEF | FULL | INSTANCE | STATUS |SYSTEM | WRITEABLE] [/TRANSLATE:BasicXml | NoComma ] [/EVERY: no_secs ] [/FORMAT: format ] alias GET [ property list ] [/VALUE ] [/ ALL ] [/TRANSLATE:BasicXml | NoComma ] [/EVERY: no_secs ] [/FORMAT: format ] alias CALL method_name parameters alias SET [ assignments alias CREATE alias DELETE alias ASSOC [/RESULTCLASS: classname ] [/RESULTROLE: rolename ][/ASSOCCLASS: assocclass ] For more help WMIC /locale:ms_409 / alias /? WMIC /locale:ms_409 / alias option alias alias-list [SCURT | FULL | INSTANTA | STARE | SYSTEM | WRITEABLE] [/ TRANSLATE: BasicXml | NoComma] [/ fiecare: no_secs] [/ Format: Format] alias-get [lista de proprietate] [/ valoare] [/ ALL] [/ TRANSLATE: BasicXml | NoComma] [/ fiecare: no_secs] [/ Format: Format] alias-CALL method_name [parametri] alias SET [atributii] alias crea alias alias conf.dr.ing DELETE [/ RESULTCLASS: className] [/ RESULTROLE: rolename] [ / ASSOCCLASS: assocclass] Pentru mai mult ajutor WMIC / localizare: ms_409 / alias /? WMIC / localizare: ms_409 / alias optiunea /? eg WMIC /locale:ms_409 /BIOS /CALL /? de exemplu, WMIC / localizare: ms_409 / BIOS / CALL /? WMIC /locale:ms_409 /MEMLOGICAL /SET /? WMIC / localizare: ms_409 / MEMLOGICAL / SET /?

The order of the /FORMAT and /TRANSLATE switches is significant: if /TRANSLATE follows /FORMAT, the output is formatted first and then translated. Ordinea de / format si / TRANSLATE comutatoare este semnificativ: in cazul in care / TRANSLATE urmeaza / format, rezultatul este formatat, prima si apoi tradus.

All the options above can be extended with a WHERE clause, best shown by the examples below: Toate optiunile de mai sus poate fi prelungit cu o clauza de UNDE, se arata in cele mai bune exemple de mai jos:

Format : Format defines the layout of the information: csv.xsl, hform.xsl, htable-sortby.xsl, htable.xsl Format: Format defineste schema de informatii: csv.xsl, hform.xsl, htable-sortby.xsl, htable.xsl
texttable.xsl, textvaluelist.xsl, xml.xsl All output files are unicode text (convert to ASCII with TYPE ) Tab Separated Values (.tsv) can be opened in excel texttable.xsl, textvaluelist.xsl, xml.xsl Toate fisierele de iesire sunt unicode text (ASCII cu conversia la tip) Tab, valori separate prin virgula (. tsv) pot fi deschise in Excel

Examples Exemple

WMIC /locale:ms_409 OS WMIC OS LIST BRIEF WMIC OS GET csname, locale, bootdevice WMIC /locale:ms_409 NTEVENT where LogFile='system' WMIC NTEVENT where 'LogFile='system' and Type>'0'' WMIC SERVICE where (state=”running”) GET caption, name, state > services.tsv WMIC SERVICE where caption='TELNET' CALL STARTSERVICE WMIC PRINTER LIST STATUS WMIC PRINTER where PortName='LPT1:' GET PortName, Name, ShareName WMIC /INTERACTIVE:ON PRINTER where PortName='LPT1:' DELETE WMIC PROCESS where name='evil.exe' delete WMIC /output:'%computername%.txt' MEMORYCHIP where 'memorytype=17' get Capacity Interactive mode: C:> START 'Windows Management' WMIC wmic:rootcli> /locale:ms_409 wmic:rootcli> OS get csname wmic:rootcli> quit WMIC / localizare: ms_409 Sistem de operare Sistem de operare WMIC LISTA SCURT WMIC Sistem de operare GET csname, localizare, bootdevice WMIC / localizare: ms_409 NTEVENT unde LogFile = 'sistem' WMIC NTEVENT unde 'LogFile =' sistem 'si de tip>' 0 '' in cazul in care SERVICE WMIC ( de stat = 'Running') GET legenda, nume, stat> services.tsv WMIC SERVICE unde caption = 'telnet' CALL STARTSERVICE WMIC imprimanta LISTA STARE WMIC imprimantei in cazul in care PortName = 'LPT1:' Get PortName, Nume, ShareName WMIC / INTERACTIVE: pe Imprimantei in cazul in care PortName = 'LPT1:' Delete WMIC procesul de unde numele = 'evil.exe' stergeti WMIC / iesire: '% computername%. Txt', unde MEMORYCHIP 'memorytype = 17' Capacitatea de a lua modul interactiv de: C:> Start 'Windows Management 'WMIC wmic: root cli> / localizare: ms_409 wmic: root cli> Sistem de operare a lua csname wmic: root cli> quit

Notes Note

WMIC is available on Windows XP Professional and Windows 2003. WMIC este disponibil pe Windows XP Professional si Windows 2003. To retrieve WMI information from older remote machines download & install: WMI core for Win 9x / WMI core for Win NT 4 Pentru a regasi informatii WMI de la distanta mai vechi masini de download & instalare: WMI de baza pentru Win 9x / WMI de baza pentru Win NT 4

The availability of WMI information does vary across different versions of Windows Disponibilitatea de informatii nu WMI, varia intre versiuni diferite de Windows
eg ODBC, SNMP, Windows Installer. de exemplu, ODBC, SNMP, Windows Installer.

To run WMIC requires administrator rights. Pentru a rula WMIC necesita drepturi de administrator.

In Windows 2000, around 4,000 properties can be monitored, and around 40 can be configured. In Windows 2000, in jur de 4000 proprietati pot fi monitorizate, iar aproximativ 40 poate fi configurat.
In Windows XP around 6,000 properties can be monitored, and around 140 can be configured. In Windows XP in jur de 6000 proprietati pot fi monitorizate, iar aproximativ 140 poate fi configurat.

Windows 2003 offers a few improvements and bug fixes: the global option /locale:ms_409 is not required (it defaults to English US.) Windows 2003 ofera cateva imbunatatiri si bug fixat: global optiunea / localizare: ms_409 nu este necesara (Aceasta are valoarea implicita engleza SUA).

When you type WMIC for the first time in Windows 2003 all the aliases are compiled. Cand tastati WMIC pentru prima data in Windows 2003 toate aliasurile sunt compilate. The second, and subsequent times you run WMIC, it will start immediately. Cea de-a doua, si ulterior ori sa executati WMIC, va incepe imediat. Under XP WMIC is slower to initialise, therefore to run several WMI queries it can be quicker to use interactive mode. Sub XP WMIC este mai lent pentru a initialise, prin urmare, pentru a rula mai multe cereri de WMI se poate mai repede pentru a utiliza modul interactiv.

* WMI information for installed software packages (PACKAGE and SOFTWAREFEATURE) is often incomplete and inconsistent for a variety of historical reasons. * WMI de informatii pentru instalate de pachete software (pachet si SOFTWAREFEATURE) este de multe ori incomplete si inconsecventa pentru o varietate de motive istorice. A more reliable method is to retrieve a list of installed programs directly from the Add/Remove list in the registry, with a WSH script like this from Torgeir Bakken. O metoda mai sigura este de a regasi o lista de programe instalate in mod direct de pe Adaugare / Eliminare in lista de registry, wsh cu un script de acest fel din Torgeir Bakken.

'Life is like a game of cards. The hand you are dealt is determinism; the way you play it is free will' - Jawaharial Nehru 'Viata este ca un joc de carti. Parte de tine sunt tratate este determinismul; modul in care va puteti juca este gratuit va' - Jawaharial Nehru

Related Commands: Cuvinte Comenzi:

SYSTEMINFO List system configuration SYSTEMINFO Lista sistem de configurare
MOF (Managed Object Format) - A language that describes management information. MOF (Managed Object Format) - o limba care descrie de gestionare a informatiilor.
Q824223 - WMIC command runs slowly with /FAILFAST switch. Q824223 - WMIC comanda se executa lent, cu / FAILFAST trece.
Q875605 - Troubleshoot WMI-related issues Q875605 - WMI-Depanarea problemelor legate de
MSDN full WMI reference - Classes, providers etc MSDN complet WMI de referinta - clase, furnizorii etc

Xcopy

Copy files and/or directory trees to another folder. Copiere fisiere si / sau directorul de arbori intr-un alt folder. XCOPY is similar to the COPY command except that it has additional switches to specify both the source and destination in detail. Xcopy este similar cu copia de comanda cu exceptia faptului ca le-a switch-uri suplimentare pentru a specifica atat sursa si destinatie in detaliu.

XCOPY is particularly useful when copying files from CDROM to a hard drive, as it will automatically remove the read-only attribute. Xcopy este deosebit de util atunci cand copiati fisiere de pe CDROM-ul la o unitate de hard disk, ca-l va elimina atributul doar in citire.

Syntax XCOPY source destination options Sintaxa xcopy sursa [destinatie] [optiuni]
Key source : Pathname for the file(s) to be copied. Sursa-cheie: calea de fisier (e) pentru a fi copiate. destination : Pathname for the new file(s). destinatie: calea pentru noul fisier (e).

[options] can be any combination of the following: [optiuni] poate fi orice combinatie a urmatoarelor:

Source Options Sursa Optiuni
/A Copy files with the archive attribute set (default=Y) / Fisiere cu o copie de arhiva set de atribute (implicit = Y)
/M Copy files with the archive attribute set and / M Copiati fisierele cu arhiva set de atribute si
turn off the archive attribute, use this option dezactiva arhiva atribut, utilizeaza aceasta optiune
when making regular Backups (default=Y) atunci cand efectueaza regulat Spate (implicit = Y)

/H Copy hidden and system files and folders (default=N) / H Copiati fisierele ascunse si de sistem si foldere (implicit = N)
/D:mm-dd-yyyy / D: mm-dd-yyyy
Copy files that have changed since mm-dd-yyyy. Copiere fisiere care s-au schimbat de cand mm-dd-yyyy. If no date is given, the default is to copy Daca nu exista nici o data este indicata, implicit este de a copia
files with a modification date before today. fisiere cu o modificare, inainte de data de azi. (at least 1 day before) (la cel putin 1 zi inainte)
/U Copy only files that already exist in destination. / U Copiere numai fisierele care deja exista in destinatie.
/S Copy folders and subfolders / S Copiati folderele si subfolderele
/E Copy folders and subfolders, including Empty folders. / E Copiati folderele si subfolderele, inclusiv foldere gol.
May be used to modify /T. Pot fi folosite pentru a modifica / T. /EXCLUDE:file1[+file2][+file3] / Excludeti: fisier1 [+ fisier2] [+ file3] (Windows 2000 only) The files can each contain one or more full or partial pathnames to be excluded. (Doar Windows 2000) de fiecare fisiere pot contine una sau mai multe totala sau partiala pathnames pentru a fi excluse. When any of these match any part of the absolute path of a SOURCE file, then that file will be excluded. Atunci cand nici una din aceste meci de nici o parte din calea absoluta de o sursa de fisiere, apoi acel fisier vor fi excluse. For example, specifying a string like obj or .obj will exclude all files underneath the directory obj or all files with the .obj extension respectively. De exemplu, specificand un sir de caractere de genul obj sau. Obj va exclude toate fisierele de sub directorul obj sau toate fisierele cu. Obj extensie respectiv.

Copy Options Copiere Optiuni
/W Prompt you to press a key before starting to copy. / W va solicita sa apasati o tasta inainte de a incepe sa o copiati.
/P Prompt before creating each file. / P Prompt inainte de a crea fiecare fisier. /Y (Windows 2000 only) Suppress prompt to confirm overwriting a file. / Y (doar Windows 2000) Suppress prompt pentru a confirma suprascrierea unui fisier. may be preset in the COPYCMD env variable. pot fi presetate in variabila env COPYCMD. /-Y (Windows 2000 only) Prompt to confirm overwriting a file. /-Y (doar Windows 2000) PROMPT sa confirmati suprascrierea unui fisier.

/V Verify that the new files were written correctly. / V Verificati ca fisierele noi au fost scrise corect. /C Continue copying even if an error occurs. / C Continuati copierea, chiar daca se produce o eroare.
/I If in doubt always assume the destination is a folder / I Daca aveti indoieli intotdeauna si asume destinatie este un folder
eg when the destination does not exist. de exemplu, atunci cand destinatie nu exista.

/Z Copy files in restartable mode. / Z Copiati fisierele din restartable Mod. If the copy is interrupted part In cazul in care copia este intrerupta parte
way through, it will restart if possible. modalitate prin, va reporni daca este posibil. (use on slow networks) (privind utilizarea retelelor de lent)
/Q Do not display file names while copying. / Q Nu afisati in timp ce numele de fisier de copiere. /F Display full source and destination file names while copying. / F Afisarea completa sursa si destinatie, in timp ce numele de fisier de copiere. /L List only - Display files that would be copied. / L Lista numai - Afiseaza fisierele care vor fi copiate.
Destination Options Destinatie Optiuni
/R Overwrite read-only files. / R Suprascriere fisiere read-only.
/T Create folder structure, but do not copy files. / T Creati folderul structura, dar nu o copiati fisiere. Do not include empty folders or subfolders. Nu includeti gol folderele sau subfolderele.
/T /E will include empty folders and subfolders. / T / E va include gol folderele si subfolderele.
/K Copy attributes. / K copiate atributele. XCOPY will otherwise reset read-only attributes. Xcopy altfel va reseta atributele doar in citire.

/N If at all possible, use only a short filename (8.3) when creating a destination file. / N Daca la toate posibil, utilizati doar un scurt nume de fisier (8,3) atunci cand creati un fisier destinatie. This may be nececcary when copying between disks that are formatted differently eg NTFS and VFAT, or when archiving data to an ISO9660 CDROM. Acest lucru poate fi nececcary atunci cand copiati intre discurile care sunt formatate diferit, de exemplu, NTFS si vfat, sau atunci cand arhivare de date la un ISO9660 CDROM-ul. /O (Windows 2000 only) copy file Ownership and ACL information. / O (doar Windows 2000) si copiati fisierul Proprietatii ACL informatii. /X Copy file audit settings (implies /O). / X Copiere fisier de setari de audit (presupune / O).

XCOPY will accept UNC pathnames Xcopy va accepta UNC pathnames

Examples: Exemple:

To copy a file: Pentru a copia un fisier:

XCOPY C:utilsMyFile D:BackupCopyFile Xcopy C: utils MyFile D: backup CopyFile

To copy a folder: Pentru a copia un folder:

XCOPY C:utils D:Backuputils /i Xcopy C: utils D: backup utils / i

To copy a folder including all subfolders. Pentru a copia un folder, inclusiv toate subfolderele.

XCOPY C:utils* D:Backuputils /s /i Xcopy C: utils * D: backup utils / e / i

The /i defines the destination as a folder. A / i defineste ca destinatie un folder.

Notes Note

In many cases the functionality of XCOPY is superseded by ROBOCOPY . In multe cazuri, functionalitatea de a xcopy este inlocuita de ROBOCOPY.

To force the overwriting of destination files under both NT4 and Windows2000 use the COPYCMD environment variable: Pentru a forta suprascrierea fisierelor de destinatie in conformitate cu atat NT4 si Windows2000 utilizeaza variabila de mediu COPYCMD:
SET COPYCMD=/Y COPYCMD = SET / Y
This will turn off the prompt in Win2000 and will be ignored by NT4 (which overwrites by default). Acest lucru va inchide promptul de comanda in Win2000 si vor fi ignorate de NT4 (care Suprascrie implicit).

When comparing Dates/Times the granularity (the finest increment of the timestamp) is 2 seconds for a FAT volume and 0.1 microsecond for an NTFS volume. Cand compararea Perioada / ori Granularitate (buni increment de timp) este de 2 secunde pentru un volum FAT si de 0,1 microsecond pentru un volum NTFS.



The WinXP version of XCOPY will accept wildcards for the source eg *.txt Versiune de WinXP de xcopy va accepta metacaractere pentru a sursei de exemplu *. txt
It is also more forgiving with trailing backslashes Este, de asemenea, mai multe iarta cu trailing backslashe

Related Commands: Cuvinte Comenzi:

COPY - Copy one or more files to another location COPIE - Copiere una sau mai multe fisiere intr-o alta locatie
DEL - Delete files DEL - Sterge fisierele
MOVE - Move a file from one folder to another Move - a muta un fisier dintr-un folder de pe un alt
ROBOCOPY - Robust File and Folder Copy ROBOCOPY - robuste pentru fisiere si foldere Copiere
Fcopy - File Copy for MMQ (copy changed files & compress. ( Win 2K ResKit ) Fcopy - Copiere fisier de MMQ (copie schimbat & comprima fisierele. (Win 2k ResKit)
Permcopy - Copy share & file ACLs from one share to another. Permcopy - Copiere fisier parts & ACLs parts de la un la altul. ( Win 2K ResKit ) (Win 2k ResKit)
MTC - XCopy and create a log file. MTC - xcopy si creati un fisier de log. ( Win 2K ResKit ) (Win 2k ResKit)

Q240268 - XCOPY changes in Win 2K Q240268 - xcopy de modificari din Win 2k

Comenzi Linux

alias =”alias”

Create an alias, aliases allow a string to be substituted for a word when it is used as the first word of a simple command. Creati un alias, aliasuri se permite un sir de caractere care urmeaza sa fie inlocuit de un cuvant, atunci cand este folosit ca primul cuvant dintr-o simpla comanda.

Syntax alias [-p] [ name [= value ] ] unalias [-a] [ name Sintaxa alias [-p] [nume [= valoare] ] unalias [-A] [nume ]

If arguments are supplied, an alias is defined for each name whose value is given. Daca argumentele sunt furnizate, un alias este definit pentru fiecare nume a caror valoare este de dat.
If no value is given, `alias' will print the current value of the alias. Daca valoarea nu este dat, 'alias' va afisa valoarea curenta de alias.

Without arguments or with the `-p' option, alias prints the list of aliases on the standard output in a form that allows them to be reused as input. Fara argumente sau cu '-p' optiune, alias printuri lista de aliasuri pe standard output intr-o forma care le permite sa fie refolosite ca intrare.

`unalias' will remove each name from the list of aliases. 'unalias', va sterge fiecare nume de pe lista de aliasuri. If `-a' is supplied, all aliases are removed. Dac `-o' este furnizat, toate aliasurile sunt sterse.

Examples Exemple

alias ls='ls -F' alias ls = 'ls-F '

Now issuing the command 'ls' will actually run 'ls -F' Acum emite comanda 'ls' de fapt, va rula 'ls-F'

alias la='ls -lAXh --color=always|less -R' alternativ la = 'ls-lAXh - culoare = intotdeauna | less-R'

Now issuing the command 'la' will actually run a long listing, in color, sorted by extension. Acum emite comanda 'la' va rula de fapt, un lung listare, in culoare, sortate dupa extindere.

Make an alias permanent Asigurati-un alias permanente

Use your favorite text editor to create a .bash_aliases file, and type the alias commands into the file. Utilizati editorul de text preferat de dvs. pentru a crea un. Bash_aliases fisier, tastati aliasul si comenzi in fisierul.
.bash_aliases will run at login (or you can just execute it with ..bash_aliases ) . bash_aliases va rula la conectare (sau puteti sa executati-l cu bash_aliases ..)

Details Detalii

The first word of each simple command, if unquoted, is checked to see if it has an alias. Primul cuvant din fiecare simpla comanda, daca unquoted, este verificat pentru a vedea daca are un alias. If so, that word is replaced by the text of the alias. Daca este asa, ca cuvantul se inlocuieste cu textul de alias. The alias name and the replacement text may contain any valid shell input, including shell metacharacters, with the exception that the alias name may not contain `='. De alias de nume si de inlocuire a textului poate sa contina orice coaja de intrare valabila, inclusiv shell metacharacters, cu exceptia ca numele alias-ar putea sa nu contina '= '.

The first word of the replacement text is tested for aliases, but a word that is identical to an alias being expanded is not expanded a second time. Primul cuvant din textul de inlocuire este testat pentru pseudonime, dar un cuvant ca este identic cu un alias curs de dezvoltare nu este extinsa a doua oara. This means that one may alias ls to 'ls -F', for instance, and Bash does not try to recursively expand the replacement text. Acest lucru inseamna ca s-ar putea sa alias ls 'ls-F', de exemplu, iar bash nu incercati sa extindeti recursiv, textul de inlocuire.

If the last character of the alias value is a space or tab character, then the next command word following the alias is also checked for alias expansion. Daca ultimul caracter al alias-valoare este un spatiu sau o fila de caractere, apoi urmatoarea comanda de dupa cuvantul alternativ este, de asemenea, pentru a verifica alias expansiune.

There is no mechanism for using arguments in the replacement text, as in csh. Nu exista nici un mecanism pentru utilizarea argumente in inlocuirea textului, la fel ca in csh. If arguments are needed, a shell function should be used . Daca este nevoie de argumente, un shell functie ar trebui sa fie folosite. Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt . Alias nu sunt extinse in momentul in care shell nu este interactiv, cu exceptia cazului in care expand_aliases coaja optiune este setata, utilizand shopt.

The rules concerning the definition and use of aliases are somewhat confusing. Normele privind definirea si utilizarea de aliasuri sunt oarecum confuz. Bash always reads at least one complete line of input before executing any of the commands on that line. Bash afisari intotdeauna cel putin o linie completa de intrare, inainte de orice, executa comenzile de pe acea linie. Aliases are expanded when a command is read, not when it is executed. Alias sunt extinse, atunci cand o comanda este de citit, nu si atunci cand acesta este executat. Therefore, an alias definition appearing on the same line as another command does not take effect until the next line of input is read. Prin urmare, un alias de definitie sa apara pe aceeasi linie, dupa cum o alta comanda nu are efect pana la urmatoarea linie de intrare este de citit. The commands following the alias definition on that line are not affected by the new alias. Comenzile de dupa definitia pe care alias-line nu sunt afectate de noile nume alternativ. This behavior is also an issue when functions are executed. Acest comportament este, de asemenea, o problema atunci cand functii sunt executate. Aliases are expanded when a function definition is read, not when the function is executed, because a function definition is itself a compound command. Alias sunt extinse in momentul in care o functie de definitie este citit, nu si atunci cand functia este executat, pentru ca o functie definitie este ea insasi o comanda compuse. As a consequence, aliases defined in a function are not available until after that function is executed. Ca o consecinta, aliasuri definite in functie pana cand nu sunt disponibile dupa aceasta functie este executat. To be safe, always put alias definitions on a separate line, and do not use alias in compound commands. Pentru a fi sigur, intotdeauna pus alias definitii pe un rand separat, si nu folosesc in alte comenzi compuse.

`alias' and `unalias' are BASH built-ins. 'alias' si 'unalias' sunt construite bash-in-uri. For almost every purpose, shell functions are preferred over aliases. Pentru aproape orice scop, coaja functii sunt preferate de peste aliasuri.

'The odds against there being a bomb on a plane are a million to one, and against two bombs a million times a million to one. Next time you fly, cut the odds and take a bomb.' 'Impotriva cota de acolo fiind o bomba pe un plan sunt un milion de la una, si impotriva doua bombe un milion de un milion de ori la unul. Urmatoarea data cand se va zbura, taiate de cote si sa ia o bomba.' - Benny Hill -- Benny Hill

Related bash commands Bash cu comenzile:

export - Set an environment variable de export - Setati o variabila de mediu
env - Display, set, or remove environment variables env - Afisarea, pentru a stabili, sau de a elimina variabilele de mediu
echo - Display message on screen ECHO - Afiseaza mesaj de pe ecran
readonly - Mark variables/functions as readonly readonly - Mark variabile / functii ca readonly
shift - Shift positional parameters schimbare - Shift positional parametri

Equivalent Windows XP commands : Echivalent Windows XP comenzi:

SET - Display, set, or remove Windows NT environment variables SET - Afisarea, pentru a stabili, sau de a elimina Windows NT variabile de mediu
SETX - Set environment variables permanently SETX - set de variabile de mediu permanent
SETLOCAL - Begin localisation of environment changes in a batch file SETLOCAL - Inceput de localizare a mediului de modificari intr-un fisier batch

Unset=”dezactivat “

Cu aceasta comanda Remove variable or function names inlaturam nume de variabila sau functie

SYNTAX unset [-fv] [ name ] OPTIONS -f The name s refer to shell Functions, and the function definition is removed. Sintaxa dezactiva [-FV] [nume] OPTIONS-f Numele lui se refera la coaja Functii, si functia de definitie este eliminat. Readonly variables and functions may not be unset. Readonly de variabile si functii nu poate fi dezactivat. -v Each name refers to a shell Variable (default) - v Fiecare nume se refera la o coaja de variabile (implicit)

The return status is zero unless a name does not exist or is readonly. Intoarcerea stare este zero cu exceptia cazului in care un nume nu exista sau este in citire.

uset is a BOURNE shell command and a POSIX `special' builtin. uset este un Bourne shell de comanda si o POSIX 'speciale' builtin.

'A good trader has to have three things: a chronic inability to accept things at face value, to feel continuously unsettled, and to have humility' - Michael Steinhardt 'Un bun agentul economic trebuie sa dispuna de trei lucruri: o cronica incapacitatea de a accepta lucrurile la valoarea nominala, sa se simta continuu, unsettled, si pentru a avea umilinta' - Michael Steinhardt

Related bash commands Bash cu comenzile:

env - Display, set, or remove environment variables env - Afisarea, pentru a stabili, sau de a elimina variabilele de mediu
echo - Display message on screen ECHO - Afiseaza mesaj de pe ecran
export - Set an environment variable de export - Setati o variabila de mediu
function - Define Function Macros functia - Definirea Func Macrocomenzi
readonly - Mark variables/functions as readonly readonly - Mark variabile / functii ca readonly
set - Manipulate shell variables and functions stabilit - manipula coaja de variabile si functii

Equivalent Windows XP commands : Echivalent Windows XP comenzi:

SET - Display, set, or remove Windows NT environment variables SET - Afisarea, pentru a stabili, sau de a elimina Windows NT variabile de mediu
SETX - Set environment variables permanently SETX - set de variabile de mediu permanent

Until =”pana”

Execute consequent-commands as long as test-commands has an exit status which is not zero. Executarea unui consecventa-comenzi atat timp cat are comenzile de test-o stare de iesire care nu este zero.

SYNTAX until test-commands ; do consequent-commands ; done Sintaxa pana la test-comenzi; consecventa-a face comenzi; facut

The return status is the exit status of the last command executed in consequent-commands , or zero if none was executed. Intoarcerea stare este starea de iesire a ultimei comenzi executate in urma-comenzi, sau zero, daca nu a fost executat.

Related bash commands Bash cu comenzile:

case - Conditionally perform a command caz - conditionally efectua o comanda
for - Expand words , and execute commands pentru - Expandeaza cuvinte, si executati comenzi
if - Conditionally perform a command daca - conditionally efectua o comanda
while - Execute commands in timp ce - Executare comenzi

Equivalent Windows XP commands : Echivalent Windows XP comenzi:

FOR - Conditionally perform a command several times DE - conditionally efectua o comanda de mai multe ori
IF - Conditionally perform a command IF - conditionally efectua o comanda



Wait =”asteapta”

Asteptarea suspenda executarea functiei de curent proces pana cand un copil a parasit, sau pana la un semnal este emis ale caror actiune este de a renunta la procesul de curent sau pentru a apela un semnal de manipulare functie. If a child has already exited by the time of the call (a so-called 'zombie' process), the function returns immediately. Daca un copil a parasit deja in momentul de apel (un asa-numit 'zombie' proces), functia returneaza imediat. Any system resources used by the child are freed. Orice sistem de resurse folosite de copil sunt eliberati.

The waitpid function suspends execution of the current process until a child as specified by the pid argument has exited, or until a signal is delivered whose action is to terminate the current process or to call a signal handling function. In functie waitpid suspenda executarea curent proces pana cand un copil, dupa cum se precizeaza de catre pid argument a parasit, sau pana la un semnal este emis ale caror actiune este de a renunta la procesul de curent sau pentru a apela un semnal de manipulare functie. If a child as requested by pid has already exited by the time of the call (a so-called 'zombie' process), the function returns immediately. Daca un copil asa cum a solicitat deja de pid-a parasit in momentul de apel (un asa-numit 'zombie' proces), functia returneaza imediat. Any system resources used by the child are freed. Orice sistem de resurse folosite de copil sunt eliberati.

The value of pid can be one of: Valoarea pid poate fi una dintre:

< -1 <-1

which means to wait for any child process whose process group ID is equal to the absolute value of pid . ceea ce inseamna sa asteptati pentru orice proces copil al carui ID de proces de grup este egala cu valoarea absoluta a pid.

which means to wait for any child process; this is the same behaviour which wait exhibits. ceea ce inseamna sa asteptati pentru orice proces copil; acest lucru este acelasi comportament care asteptati de exponate.

which means to wait for any child process whose process group ID is equal to that of the calling process. ceea ce inseamna sa asteptati pentru orice proces copil al carui ID de proces de grup este egala cu cea a procesului de apel.

> 0 > 0

which means to wait for the child whose process ID is equal to the value of pid . ceea ce inseamna sa asteptati pentru copil al caror proces de identificare, este egal cu valoarea pid.

The value of options is an OR of zero or more of the following constants: Valoarea de optiuni este una sau de zero sau mai multe din urmatoarele constante:

WNOHANG WNOHANG

which means to return immediately if no child has exited. ceea ce inseamna, pentru a va intoarce imediat, daca nu a parasit copilul.

WUNTRACED WUNTRACED

which means to also return for children which are stopped, and whose status has not been reported. ceea ce inseamna de asemenea, pentru a reveni pentru copiii care sunt oprit, si a caror stare nu a fost raportat.

(For Linux-only options, see below.) (Pentru Linux-doar optiuni, a se vedea mai jos.)

If status is not NULL , wait or waitpid store status information in the location pointed to by status . Daca statutul nu este NULL, asteptati sau waitpid stoca informatii referitoare la stadiul in locatia indicat de catre statut.

This status can be evaluated with the following macros (these macros take the stat buffer (an int ) as an argument --- not a pointer to the buffer!): Acest statut poate fi evaluat cu urmatoarele macro-uri (Aceste macro-uri ia tampon de stat (un int), ca un argument --- nu un pointer la buffer-ul!):

WIFEXITED( status ) WIFEXITED (status)

is non-zero if the child exited normally. este non-zero in cazul in care copilul parasit in mod normal.

WEXITSTATUS( status ) WEXITSTATUS (status)

evaluates to the least significant eight bits of the return code of the child which terminated, which may have been set as the argument to a call to exit() or as the argument for a return statement in the main program. evalueaza la opt biti cel mai putin semnificativ de revenirea cod al copilului care a incetat, care ar putea sa fi fost stabilit ca argument pentru un apel la iesire () sau ca argument pentru un profit declaratie in principal de program. This macro can only be evaluated if WIFEXITED returned non-zero. Acest macro pot fi evaluate doar daca WIFEXITED returnate non-zero.

WIFSIGNALED( status ) WIFSIGNALED (status)

returns true if the child process exited because of a signal which was not caught. returneaza true in cazul in care copilul parasit proces din cauza unui semnal care nu a fost capturat.

WTERMSIG( status ) WTERMSIG (status)

returns the number of the signal that caused the child process to terminate. returneaza numarul de semnal care au determinat sa puna capat procesului de copil. This macro can only be evaluated if WIFSIGNALED returned non-zero. Acest macro pot fi evaluate doar daca WIFSIGNALED returnate non-zero.

WIFSTOPPED( status ) WIFSTOPPED (status)

returns true if the child process which caused the return is currently stopped; this is only possible if the call was done using WUNTRACED . returneaza true in cazul in care copilul care a cauzat procesul de intoarcere este momentan oprit; acest lucru este posibil doar in cazul in care apelul a fost facut utilizand WUNTRACED.

WSTOPSIG( status ) WSTOPSIG (status)

returns the number of the signal which caused the child to stop. returneaza numarul de semnal care a provocat copilului pentru a opri. This macro can only be evaluated if WIFSTOPPED returned non-zero. Acest macro pot fi evaluate doar daca WIFSTOPPED returnate non-zero.

Some versions of Unix (eg Linux, Solaris, but not AIX, SunOS) also define a macro WCOREDUMP( status ) to test whether the child process dumped core. Unele versiuni de Unix (de exemplu, Linux, Solaris, AIX, dar nu, SunOS) de asemenea, defini o macrocomanda WCOREDUMP (status) pentru a testa daca copilul procesul de baza fac obiectul unui dumping. Only use this enclosed in #ifdef WCOREDUMP Utiliza numai in acest imprejmuit # ifdef WCOREDUMP #endif. # endif.

RETURN VALUE Returnarea valorii in

The process ID of the child which exited, or zero if WNOHANG was used and no child was available, or -1 on error (in which case errno is set to an appropriate value). Procesul de identificare a copilului care a parasit, WNOHANG sau zero, daca nu a fost folosit si copilul a fost disponibil, sau -1 la eroare (caz in care errno este setat la o valoare corespunzatoare).

ERRORS ERORI

ECHILD ECHILD

if the process specified in pid does not exist or is not a child of the calling process. in cazul in care procesul specificate in pid nu exista sau nu este un copil din procesul de apelare. (This can happen for one's own child if the action for SIGCHLD is set to SIG_IGN. See also the LINUX NOTES section about threads.) (Acest lucru se poate intampla pentru unul propriu al copilului in cazul in care o actiune pentru SIGCHLD este setat la SIG_IGN. A se vedea de asemenea, Linux sectiunea Note despre fire.)

EINVAL EINVAL

if the options argument was invalid. optiuni in cazul in care argumentul a fost incorecta.

EINTR EINTR

if WNOHANG was not set and an unblocked signal or a SIGCHLD was caught. WNOHANG, daca nu a fost stabilita si o deblocat sau un semnal SIGCHLD a fost capturat.

While =”in timp ce “

Execute consequent-commands as long as test-commands has an exit status of zero Executarea unui consecventa-comenzi atat timp cat are comenzile de test-o stare de iesire de la zero

SYNTAX while test-commands ; do consequent-commands ; done In timp ce sintaxa de test-comenzi; consecventa-a face comenzi; facut

The return status is the exit status of the last command executed in consequent-commands , or zero if none were executed. Intoarcerea stare este starea de iesire a ultimei comenzi executate in urma-comenzi, sau zero, daca nu s-au executat.

“Men talk of killing time, while time quietly kills them.” - Dion Boucicault 'Oamenii vorbesc de ucidere a timpului, in timp ce timp quietly le ucide.' - Dion Boucicault

Related bash commands Bash cu comenzile:

case - Conditionally perform a command caz - conditionally efectua o comanda
for - Expand words , and execute commands pentru - Expandeaza cuvinte, si executati comenzi
if - Conditionally perform a command daca - conditionally efectua o comanda
until - Execute commands (until error) pana la - executarea unui comenzi (pana la eroare)

Equivalent Windows XP commands : Echivalent Windows XP comenzi:

FOR - Conditionally perform a command several times DE - conditionally efectua o comanda de mai multe ori
IF - Conditionally perform a command IF - conditionally efectua o comanda






Politica de confidentialitate



DISTRIBUIE DOCUMENTUL

Comentarii


Vizualizari: 1643
Importanta: rank

Comenteaza documentul:

Te rugam sa te autentifici sau sa iti faci cont pentru a putea comenta

Creaza cont nou

Termeni si conditii de utilizare | Contact
© SCRIGROUP 2022 . All rights reserved

Distribuie URL

Adauga cod HTML in site