by Gigon01 on Mon Sep 17, 2007 1:26 pm
I am a little rusty on my VB so I am stumbling on some code for a program I am currently working on. I am trying to write a program that when the user clicks a button it will locate a directory called "Maps Data." Once directory has been located I want the program to copy two files and another directory full of files into directory “Maps data.” I would just use the CopyFile code but the problem I am running into is that directory is not always in the same location on every computer. the directory path on my computer is "C:\Usalada\Map Data." On one of my buddies computers the directory path is "E:\Timeber\Usalada\Map Data," on another persons computer the path could be "C:\Documents and Settings\Administrator\My Documents\Usalada\Map Data." This is why I need to computer to search the whole computer to locate the directory. If this is possible and someone could point me in the right direction it would be greatly appreciated.