Help Viết lệnh tắt mở trên cmd đuôi .bat

Phanhdungp

Junior
Joined
Apr 3, 2017
Messages
79
Reactions
13
MR
0.193
Follow me on Facebook Chat with me via Skype
Em ngồi mò ra cách tắt mở lệnh chrome bật như dưới

@ECHO OFF
:begin_lb
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.zing.vn/
timeout 2400
taskkill /f /im chrome.exe
timeout 2400
GOTO begin_lb

Nay em muốn viết thành kiểu là Mở chrome chạy "zing.vn" như trên, sau 1 thời gian ( ví dụ 2400s) tắt file chrome đi, nghĩ trong 2400s, lại mở file chrome nhưng chạy web "youtube.com" sau 2400s tắt, đợi 2400s lại mở zing.vn......

Có như vậy thôi ạ,

Em cần viết trên file cmd thôi ạ!

Nhờ các pro giúp dùm ạ

Em cảm ơn !!
 

khoailang

Junior
Joined
Dec 21, 2012
Messages
188
Reactions
165
MR
0.001
có code trên rồi, cần j viết nữa đâu thím, hay m hiểu sai ý thớt.
 

mr.coi

Hero
Joined
May 16, 2010
Messages
3,061
Reactions
1,072
MR
0.034
Em ngồi mò ra cách tắt mở lệnh chrome bật như dưới

@ECHO OFF
:begin_lb
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.zing.vn/
timeout 2400
taskkill /f /im chrome.exe
timeout 2400
GOTO begin_lb

Nay em muốn viết thành kiểu là Mở chrome chạy "zing.vn" như trên, sau 1 thời gian ( ví dụ 2400s) tắt file chrome đi, nghĩ trong 2400s, lại mở file chrome nhưng chạy web "youtube.com" sau 2400s tắt, đợi 2400s lại mở zing.vn......

Có như vậy thôi ạ,

Em cần viết trên file cmd thôi ạ!

Nhờ các pro giúp dùm ạ

Em cảm ơn !!
dùng tool đơn giản này cho nhanh.
https://mmo4me.com/threads/chia-se-viet-tool-auto-may-cai-don-gian.387521/
 
Joined
Dec 29, 2017
Messages
58
Reactions
16
MR
0.101
Call me! Call me! Follow me on Facebook Chat with me via Skype
chứ không phải bạn khác viết ra rồi đấy à?
sửa thêm thôi.
@ECHO OFF
:begin_lb
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.zing.vn/
timeout 10 ( tùy chỉnh )
taskkill /f /im chrome.exe
timeout 10 ( tùy chỉnh )
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.youtube.com/
timeout 10 ( tùy chỉnh )
taskkill /f /im chrome.exe
timeout 10 ( tùy chỉnh )
GOTO begin_lb
 
mình sử dụng trên vps hee, mà có rồi, tk bác đã chia sẻ thêm ạ!
cũng tiếc chrome m ko rành cho lắm, ff thì m còn làm được

hoặc bạn thêm web thì thêm
start chrome.exe google.com
thành 2 lần xem đúng ý thím ko.
hiiii tk bác nha ^^, em ngâm cứu thêm
chứ không phải bạn khác viết ra rồi đấy à?
sửa thêm thôi.
@ECHO OFF
:begin_lb
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.zing.vn/
timeout 10 ( tùy chỉnh )
taskkill /f /im chrome.exe
timeout 10 ( tùy chỉnh )
start "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.youtube.com/
timeout 10 ( tùy chỉnh )
taskkill /f /im chrome.exe
timeout 10 ( tùy chỉnh )
GOTO begin_lb
heee đã ok, tk bác nhiều ạ, hôm bữa em cũng làm gần giống bác mà còn thiếu nên k ra được ^^
tk bác nhiều nha
 

Announcements

Today's birthdays

Forum statistics

Threads
423,782
Messages
7,133,176
Members
176,236
Latest member
pingocno1

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom