VB6 - folder copy dependant on username
Posted on 2004-09-20
I'm writing a small program to help facilitate migration of users as well as learn more about VB6. I would like to copy the favorites folder from a Windows 200 Pro user account and copy it into another folder named after the user.
What I have so far is copying the all of the folders under the username instead of just the Favorites folder.
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFolder "c:\documents and settings\" & strUser & "\Favorites\", "c:\Migration\" & strUser
The folders structure "C:\Migration\User" is already in place from an earlier event.
Any guidance would be appreciated.