Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get System Drive

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
I have recently taken over an application that has the system drive set in several const's.

Example:
Private Const REXE_PATH As String = "c:\PROGRAM FILES\RC\RC.exe "

I would like to find the system drive, and set it at the begining of application. That way if installed on Citrix it will use "M" and with local pc's it will use "C".

What is the easiest way to get the system drive ?

Thanks in advance.
 
Okay what do you mean by ssytem drive???

If you mean the drive where your application is running from, then it's

MsgBox App.Path

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
If not, look at environmental variables with the environ function.

mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top