Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9907

Launch a bat file without a command window as administrator?

$
0
0

I've tried many solutions, but they didn't work, somehow.

I can currently launch a bat file without command window from a vbs but I don't know how to launch it as admin.

VBScript (So I can launch the batch file without a command window):

Set oShell = CreateObject ("Wscript.Shell") Dim strArgsstrArgs = "cmd /c Start.bat"oShell.Run strArgs, 0, false

Batch (Start.bat):

Start /wait Application.exeNet stop ServiceNameGoesHere

How do I launch the batch file as administrator while still making it invisible?


Viewing all articles
Browse latest Browse all 9907

Trending Articles