Squall_FF8 1 Posted Wednesday at 03:47 PM Hey guys, I have a shared folder on the local net that I want to be able to Copy/Move/Delete files from it with a Delphi application. It works great when I share that folder with unlimited access. For security requirements I cant do that - I need to make it accessible only with user/pass Do you know how I can that? Share this post Link to post
Remy Lebeau 1611 Posted Wednesday at 04:02 PM Try using WNetAddConnection2() or WNetAddConnection3() to establish a connection to the folder with user/pass before then accessing the files. Share this post Link to post
Angus Robertson 653 Posted Wednesday at 04:06 PM You use the Windows API WNetAddConnection2 to make a connection to a network resource and can redirect a local device to the network resource, ie map a UNC drive to a local drive letter that you can access, the API needs the remote login. The ICS TIcsFileCopy component uses it for remote path access. Angus Share this post Link to post