Copying files from password-protected folder via LAN
Posted on 2004-04-11
I need to copy some files from password-protected folders via LAN. I guess there should be 2 (or more) ways to do it.
- First way is to use Windows API function within VB code.
-The other one is to use VB6.0 itself FileSystemObject.
I can easily copy files if folders that contain the files are NOT password-protected: Using
VB6.0 FileSystemObject just setting like
FSys.CopyFile "\\RemoteMachine\Folder1\*.txt", "\c:\MyFilesFolder"
where FSys is VB6.0 FileSystemObject.
My problem is Folder1 is now password-protected.
Need a help to solve this task.
Thanks in advance,