Users CDROM path - kinda like %SystemRoot%

Brent Russell

New member
Joined
Oct 30, 2005
Messages
1
Programming Experience
3-5
I need a %SourceDrive% like %Desktop% and %SystemRoot% but I can not find one.

Currently I made a module that does this for every drive.....

IF System.IO.File.Exists("A:\BrentRussell_Portfolio.exe") Then
Return "A:\"
Else IF System.IO.File.Exists("B:\BrentRussell_Portfolio.exe") Then
Return "B:\"
and so on...


Yes this is very bad and annoying! I need something where the exe will know "/data" is actualy "C:/Path/to/Myself/data/"

.NET has to have implementation for this somehow. Anyone know or have an idea for me?

The basic purpose is so that people can open my resume and projects from my program and its all stored on a cd I can deploy.

Your help is over appriciated,

- Brent Russell
 
Back
Top