Increase your revenue up to 300%
Loading

Cách chạy nhiều file .bat cùng một lúc

Start "" "command1" "arg1" "arg2"
Start "" "command2" "arg1" "arg2"
Start "" "command3" "arg1" "arg2"

Note: "arg" là tham số của câu lệnh (command).
Note: Nếu câu lệnh có tham số thì phải đưa câu lệnh vào 1 nháy đôi, tham số vào 1 nháy đôi. Ví dụ: --> C:\App.exe -silent --> "C:\App.exe" "-silent"
Note: Nháy đôi ngay sau Start là rất cần thiết, không được xóa đi.

Ví dụ:
@echo off
Start "" "C:\windows\system32\notepad.exe" "/save" "document.txt"
Start "" "mkdir" "d:\newdir1"
Start "" "C:\yourapp.exe"
exit

Giải pháp khác:

@echo off
rem Notepad
cd %windir%\system32
start notepad.exe
rem Calculator
cd %windir%\system32
start calc.exe
exit

Đọc thêm:
http://www.infionline.net/~wtnewton/batch/batguide.html

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international voip calls