ghudson
Registered User.
- Local time
- Today, 15:35
- Joined
- Jun 8, 2002
- Messages
- 6,194
What is the best way to determine if the opened database is located in a users \Temp\ folder? I used to be able to test if a db was located @ C:\Windows\Temp\ or C:\WinNT\Temp\ Now with the various places Windows XP might open a db that was attached in an email, I am having a hard time figuring out the best way to test where the opened db is located. Is there anyway that I can easily code and test if a db is located in a \Temp\ folder no matter what the prefix location or drive before the \Temp\ folder is? Examples:
C:\Temp\Test.mdb
C:\Windows\Temp\Test.mdb
C:\WinNT\Temp\Test.mdb
C:\Documents and Settings\ghudson\Local Settings\Temp\Test.mdb
I need to test if True or False that the opened db is located in a \Temp\ folder.
Thanks!
C:\Temp\Test.mdb
C:\Windows\Temp\Test.mdb
C:\WinNT\Temp\Test.mdb
C:\Documents and Settings\ghudson\Local Settings\Temp\Test.mdb
I need to test if True or False that the opened db is located in a \Temp\ folder.
Thanks!