|24 Apr 2010||#1|
| || |
batch files - run as administrator
I am a software developer (dot net). Until recently I did all my work in the XP environment. I developed a utility library that goes into the global assembly cache. In the XP world this was easy.
I write some .bat files that called the gacutil.exe and passed it the appropriate parameters.
gacutil.exe is a command line app, so right-clicking in Explorer and selecting run as administrator does no good.
I use .bat files because the path to gacutil.exe is a mile long, and the path to the library to register is a mile long. Typing the paths by hand every time is very tedious and very error prone.
How can I run the utility with administrator privileges?
|My System Specs|