Solved

Is it possible to run a program after RAD Studio starts?

Posted on 2014-11-18
2
147 Views
Last Modified: 2014-11-20
Where I work we log onto our computers with non-privileged accounts, then use "Run as Administrator" when necessary to do work that requires elevated privileges.  I use mapped network drives to access my Delphi projects, however, when I run RAD Studio as Administrator, there are no mapped drives.  I have written a program that will map the necessary drives and added it to the RAD Studio tools menu, so I can run that once Studio is up and running.  I would really like this step automated in some way.  A way to make the mappings persistent (which I have tried, but did not have success) would be the best solution.  Barring that, having a way to autorun my program after Studio is up would be acceptable.

Anyone have any ideas about how I could accomplish this?
0
Comment
Question by:tadadams
2 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 40453379
Create a batch file (.cmd or .bat) that will first map the drives (Net Use) and then launch RAD Studio.  You can run the batch file as administrator.  Those privileges should transfer to the RAD Studio session.
0
 

Author Comment

by:tadadams
ID: 40454531
You ever have one of those "Doh!" moments.  Don't know why I didn't think of that.  Worked perfectly, thank you.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now