午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    dos中一些常用命令的errorlevel返回值
    來源:易賢網(wǎng) 閱讀:877 次 日期:2016-06-20 09:50:32
    溫馨提示:易賢網(wǎng)小編為您整理了“dos中一些常用命令的errorlevel返回值”,方便廣大網(wǎng)友查閱!

    這篇文章主要介紹了dos中一些常用命令的errorlevel返回值,方便大家在bat中方便判斷

    attrib.exe

    (a) target file/folder not found = errorlevel 1

    (b) invalid switch = errorlevel 1

    (c) sharing violation (target file in use) = errorlevel 1

    (d) invalid drive specification = errorlevel 1

    (e) drive not ready (either abort or fail reply) = errorlevel 1

    (f) invalid/wrong number of parameters = errorlevel 1

    extract.exe

    (a) invalid switch = errorlevel 1

    fc.exe

    (a) insufficient number of filespecs = errorlevel 1

    (b) too many filenames on command line = errorlevel 1

    (c) sharing violation + abort reply = errorlevel 5

    (note: fail reply returns errorlevel 0)

    (d) drive not ready = errorlevel 18

    (note: fail reply returns errorlevel 0)

    find.exe

    (a) target string found (=f0und) = errorlevel 0

    (b) target string missing (=m1ssing) = errorlevel 1

    (c) find /? = errorlevel 1

    (d) parameter format not correct = errorlevel 2

    (e) specified file to search not found = errorlevel 2

    (f) specified file in use + fail reply = errorlevel 2

    (g) drive not ready + fail reply = errorlevel 2

    (h) specified file in use + abort reply = errorlevel 5

    (i) drive not ready + abort reply = errorlevel 5

    format.com

    (a) drive not ready = errorlevel 4

    (there is no abort, retry, fail stall)

    ftp.exe

    (a) brief help (use: ftp -h for brief help) = errorlevel 2

    (b) error opening script file (file missing) = errorlevel 2

    (c) invalid switch = errorlevel 2

    more.com

    (a) invalid switch (more doesn't accept switches) = errorlevel 1

    (b) drive not ready (abort reply) = errorlelel 5

    (note: fail reply returns errorlevel 0)

    move.exe

    (a) required parameter missing = errorlevel 1

    (b) unable to create destination = errorlevel 1

    (c) unable to open source = errorlevel 1

    (you see this when trying to move a folder from one drive

    to another. you need to use xcopy /s followed by deltree,

    since move won't handle folder moves across drives)

    (d) sharing violation + fail reply = errorlevel 1

    (note: file is nevertheless copied, not moved, in this case)

    (e) sharing violation + abort reply = errorlevel 5

    (note: file is nevertheless copied, not moved, in this case)

    (f) drive not ready (abort reply) = errorlevel 18

    (note: fail reply - unusually - returns errorlevel 1)

    ping.exe

    (a) unknown host = errorlevel 1

    (usually=name not found on domainnameserver)

    (b) brief help (with no parameter) = errorlevel 1

    note: for ping brief help with /? switch, errorlevel is 0

    (c) invalid switch = errorlevel 1

    (and displays the brief help as well)

    (d) interrupted with [ctrl-c] = errorlevel 255

    sort.exe

    (a) invalid switch = errorlevel 1

    (b) drive not ready (abort reply) = errorlevel 15

    (note: fail reply returns errorlevel 0)

    start.exe

    (a) start /? (real mode) = errorlevel 1

    (b) start /? (gui) = errorlevel 255

    (c) can't find file specified for start = errorlevel 255

    (d) no file association for specified file = errorlevel 255

    (e) drive not ready = errorlevel 255

    (there is no abort, retry, fail stall)

    subst.exe

    (a) invalid parameter = errorlevel 1

    (b) invalid switch = errorlevel 1

    (c) path not found = errorlevel 1

    (d) drive not ready (abort reply) = errorlevel 21

    (note: fail reply - unusually - returns errorlevel 1)

    tracert.exe

    (a) unable to resolve target system name = errorlevel 1

    (usually=name not found on domainnameserver)

    (b) invalid switch = errorlevel 1

    (c) brief help (no parameter) = errorlevel 1

    (d) interrupted with [ctrl-c] = errorlevel 255

    note: for tracert brief help, type command without parameters

    xcopy.exe

    (a) file not found = errorlevel 1

    (b) invalid date in /d switch = errorlevel 4

    (c) invalid number of parameters = errorlevel 4

    (d) invalid parameter = errorlevel 4

    (e) device not ready = errorlevel 4

    (f) unable to create directory = errorlevel 4

    (g) system can't find file = errorlevel 5

    (this occurs when device such as nul is used as source file)

    更多信息請查看腳本欄目
    易賢網(wǎng)手機(jī)網(wǎng)站地址:dos中一些常用命令的errorlevel返回值
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

    2025國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機(jī)號
    • 驗證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機(jī)站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
    云南網(wǎng)警備案專用圖標(biāo)
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報警專用圖標(biāo)