Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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.
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

828 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