batch files - run as administrator

JonJacobs

New member
Member
Local time
8:12 AM
Messages
46
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?

Thanks,
Jon
 

My Computer

Computer Manufacturer/Model Number
HP Touchsmart tm2
OS
Windows 7 Pro

Attachments

  • Capture.PNG
    Capture.PNG
    29.7 KB · Views: 1,084

My Computer

Computer Manufacturer/Model Number
Asus P5B
OS
Windows 7 Ultimate
CPU
Intel Q9550
Motherboard
Asus P5B
Memory
4x2GB HyperX
Graphics Card(s)
ATI HD3850 512
Sound Card
Creative X-Fi Platinum
Monitor(s) Displays
Samsung 50 / Samsung 24
Screen Resolution
1920*1080 / 1920*1200
Hard Drives
Multiple RAID volumes
PSU
ThermalTake ToughPower
Case
Armor
Cooling
Liquid
Keyboard
$6 2.4 gHz desktop
Internet Speed
Just this side of fast enough.
Great information from both of you!
Thank you very much.
Jon
 

My Computer

Computer Manufacturer/Model Number
HP Touchsmart tm2
OS
Windows 7 Pro
Back
Top