Αποτελέσματα Αναζήτησης
For 2008 R2 make invisible.vbs have this content, and just execute it directly. It will run the BAT silently and wait for completion. Set objShell = WScript.CreateObject("WScript.Shell") objShell.Run "D:\IUpdateScript.bat", 0, true
20 Αυγ 2012 · I have found the Run command, it has an option for waiting for the process to finish: Set objShell = Wscript.CreateObject("WScript.Shell") objShell.Run "TestScript.vbs" intWindowStyle, bWaitOnReturn
13 Νοε 2009 · Worked for an HTA I had where it would not read the WScript shell object I created to do objShell.Sleep(), nor WScript.Sleep(). So I did Paulie's method instead. One caveat: in Chrome it gives you that pop-up if you want to wait for the script to respond if you put in anything more than 1 second.
17 Φεβ 2010 · With the ShellExecute command, I don't need to specify a specific user name/password, but just specify "runas" and I end up prompted to click a button to allow admin access to run the command. With the "Run" command you've given, the script would just run in the logged-in user's context.
.Run Run an external Command. Syntax objShell.Run ( strCommand , [ intWindowStyle ], [ bWaitOnReturn ]) Key objShell : A WScript.Shell object strCommand : The Command to be executed intWindowStyle (Optional) : Int value indicating the appearance of the program’s window.
22 Σεπ 2017 · There is a PSShutdown command that you can use that prompts the user and allows them to cancel the shutdown. Shuts down and optionally reboots a computer. I use it to fire off a shutdown (not restart but that is an option) every night and you can simply give it a list of computers.
31 Μαΐ 2007 · Set objShell = CreateObject(“Wscript.Shell”) objShell.Run “Notepad.exe”, ,True objShell.Run “Calc.exe” We actually have two reasons for that. For one, OR told us that he tried a script exactly like the one above, but, for some reason, it didn’t work: when the first process terminated the second process failed to start. We’re not ...