?
Solved

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

Posted on 2014-11-18
2
Medium Priority
?
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 46

Accepted Solution

by:
aikimark earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month8 days, 2 hours left to enroll

765 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