vbs or j
here is a j example to run notepad three times (one after another not all three instances at the same time)
var WshShell = W.CreateObject("W.Shell");
for (var i = 0; i
WshShell.Run("notepad.exe", 5, true);
}
save it with .js extension and execute it using c in command prompt or double-click in windows explorer
the third boolean parameter controls if it waits on return. batch file has no such control
Windows Host reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/56/html/60f96092-6021-42f3-9a27-6848f4c38f64.asp
WshShell.Run method reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/56/html/6f28899c-d653-4555-8a59-49640b0e32ea.asp
Windows Host ing ...
所有跟帖:
• bad wenxuecity input filter!!! -CutOnce- ♂ (245 bytes) () 11/17/2006 postreply 09:32:37