It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Search for Directory and copy files

Moderator: dafunkymunky

Search for Directory and copy files

Postby 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.
Gigon01
 
Posts: 0
Joined: Mon Sep 17, 2007 1:19 pm

Who is online

Users browsing this forum: No registered users and 4 guests