Running Batch File As An Administrator…

Posted by WidmarkRob on Super User See other posts from Super User or by WidmarkRob
Published on 2012-10-16T11:46:46Z Indexed on 2012/11/20 11:09 UTC
Read the original article Hit count: 609

Filed under:
|
|
|

I successfully created a batch file to flush my DNS.

I have added a pause, I noticed in the title bar of the console window… It's not running as administrator.

I've already tried a couple of variations of this… Just a little guidance would be most appreciated.

I remember reading a blog somewhere, it said something about capitalization wasn't important… Is camel casing important in writing batch files?

@echo off
echo.
pause
CD..
CD..
echo.
runas /user:<Administrator> ipconfig /flushdns
echo.
pause
echo.

© Super User or respective owner

Related posts about batch

Related posts about administrator