
07-24-2002, 10:14 AM
|
|
|
Programatically access a password protected directory
|
Hi,
I'm working in a Win2000 / Visual Basic 6.0 environment.
I want to copy files from a certain directory [the directory is actually on another machine, but I don't think that makes much difference in this case]. Everything is fine when there's is no security set up for the abovementioned directory. However, there has to be security and I can only do the copying if I first launch Windows Explorer, access the directory, and input the valid username and password. If I don't this, I am not able to copy the files I want.
I am currently using FileSystemObject's CopyFile method.
Should I use another approach here? Is there any way I can programatically access a password protected directory. Is there any API function or low level stuff maybe that I can use.
Please help,
Flor
|
|