For batch files, the command line display can be hidden during execution. Can this function be directly run in the background without a window popped up?
1. Use vbsCode.
Dim objshellset objshell = wscript. createobject ("wscript. shell ") ireturn = objshell. run ("cmd.exe/C 1.bat", 0, true) ireturn = objshell. run ("cmd.exe/C 2.bat", 0, true)
Save as 1. vbs Note: This method is to run 2.batafter 1. BAT and so on. 2. bat is finished. If not, delete 2.bat.
2. Create a notepad under the same directory of Batch Processing
Enter:
Set Ws = wscript. Createobject ("wscript. Shell") WS. Run "win. BAT/start", 0
(Here, win. bat is the batch name, and you can change it yourself) and save this notepad as a file with the suffix. VBE. You only need to run this VBE file to achieve your goal!
From: http://gb.qin.blog.163.com/blog/static/10965522720104885353776/