mIRC Homepage
Posted By: Liath [solved] run cmd.exe as administrator - 13/02/13 09:27 AM
Hello Guys,

is there any way to run the cmd.exe with admin privileges in a script?

Posted By: 5618 Re: run cmd.exe as administrator - 13/02/13 10:12 AM
My first though here is if that were (easily) possible then that would defeat the entire purpose of UAC.
Posted By: Liath Re: run cmd.exe as administrator - 13/02/13 10:31 AM
it is easy, you only have to run mirc as an administrator...
Posted By: Wims Re: [solved] run cmd.exe as administrator - 13/02/13 04:20 PM
There is a way but you would need to enter the admin pass manually, you cannot automate anything with this.
Posted By: Liath Re: [solved] run cmd.exe as administrator - 13/02/13 06:04 PM
sure, it works now...

i need the info to get gameserverstats via qstat

this line run cmd.exe and qstat.exe and write the info to data.txt

Code:
run cmd.exe /q /c c:\qstat.exe -sort pF -P -u -ne -xml -q2m master.corservers.com > c:\data.txt


you only have to start mirc with administrator privileges and it will work correct

the problem ist solved for me smile
© mIRC Discussion Forums