Solved

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

Posted on 2014-11-18
2
155 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

910 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

22 Experts available now in Live!

Get 1:1 Help Now