Run CMD / Batch

Chạy lệnh cmd.exe (inline) hoặc file .bat/.cmd và ghi lại output.

Chương trình & tiến trìnhRunCmdChỉ Windows

Công dụng

Chạy lệnh cmd.exe (inline) hoặc file .bat/.cmd và ghi lại output.

Run a cmd.exe command (inline) or a .bat/.cmd file and capture its output.

Tham số

Tham sốKiểuBắt buộcMặc địnhMô tả
Commandmultiline
Tùy chọnInline cmd command. Ignored if a batch file is given below.
Ví dụ: echo Hello && dir
Hỗ trợ biến
Batch file (.bat/.cmd)file
Tùy chọnOptional. If set, this file is run instead of the inline command.
Ví dụ: C:/scripts/task.bat
Hỗ trợ biến
Argumentsstring
Tùy chọnPassed to the batch file (only used with a file).
Hỗ trợ biến
Store stdout invariable
Tùy chọn
Ví dụ: output

Các lệnh Chương trình & tiến trình khác

Sẵn sàng tự động hóa việc bận rộn?

Bắt đầu dùng thử miễn phí 10 ngày hôm nay. Không cần thẻ, không ràng buộc.