Jump to content
Squall_FF8

File operations over shared folder

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×