Open txt file with administrator privilege

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Posts: 7
Joined: Wed Feb 01, 2012 12:39 am

Open txt file with administrator privilege

Post by milend1966 » Tue Feb 21, 2012 9:47 pm

Hi, i have a vbs script that need to open a file txt and write a text. is it possible open this file with administrator privilege also the file it is running as user belongs to User group ?Actually i use objFSO.OpenTextFile to open file.Thanks