|
-
May 8th, 2007, 12:18 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Exploring directories
I'd like to be able to depend only in the hierarchy of the directories of my project files and no in which computer, unit or server the whole project is located.
For most of the file paths I use Application.CurrentProject.Path (in this case for Access).
Suppose your file lies in directory H:\XXX\YYY\ZZZ
But in H:\XXX\ you have either:
- H:\XXX\YYY, and
- H:\XXX\RRR
Is it possible to get the current directory string, go up two directories and then just add to this string "RRR" so that you are now in H:\XXX\RRR?
This should be possible by manipulating the string and searchin character \.. but is there some other way to programm this?
Last edited by Fonty; May 9th, 2007 at 11:11 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|