Hi,
Just trying to see if anyone can help with this.
Trying to copy a folder from one location to another and replace what's inside of the folder.
This is the original code, which works.
I'm trying to use a code to determine if the location is "program data" for win 7 or application data for win xp
But this doesn't work? Any help would be appreciated.
Just trying to see if anyone can help with this.
Trying to copy a folder from one location to another and replace what's inside of the folder.
This is the original code, which works.
Code:
'My.Computer.FileSystem.CopyDirectory(Application.StartupPath & "/Resources/Data/Test/", "C:\ProgramData\Data\Test\", True)Code:
My.Computer.FileSystem.CopyDirectory(Application.StartupPath & "/Resources/Data/Test", "Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData" & "\Data\Test", True)