我需要傳遞命令參數與批處理文件。我會怎麼做?我有一個小程序設置,但我不知道如何獲得命令參數..或者真的如何做一個命令。傳遞命令參數批量
@echo OFF
title Name pl0x
color 0a
:start
set INPUT=
set /P INPUT= %=%
IF "%INPUT%"=="/mynameis" (
goto :init
) ELSE (
goto :start
)
:init
Pause&Exit
REM Here, I'd print the name, like this: echo.Hello, %name%
REM I just don't have the variable. And I don't know how to set it.
如果我解決了這個或你的最後一個問題記得用接受按鈕來接受我的答案,謝謝。 – ElektroStudios 2013-04-25 21:59:10