lewix pisze:
Hi,
i need that my application share a remote folder/files to an other one.
I would like to know any suggetsion how can i do (if it is possibile).
Maybe can i use TreeView control and i have to use it by remoting?
Or i have to build a whole new protocol via tcp/ip between 2 application
to make this operations?
Hi,
I am copy, a files with this sample code:
====================================================
Dim czy_dir_jest As Boolean
czy_dir_jest = My.Computer.FileSystem.DirectoryExists(zm_katdoc)
If czy_dir_jest = False Then
My.Computer.FileSystem.CreateDirectory(zm_katdoc)
End If
Me.ProgressBar1.Minimum = 1
Dim theFiles() As String = System.IO.Directory.GetFiles(zm_srv_sync &
zm_katzr, "*", SearchOption.AllDirectories)
Me.ProgressBar1.Maximum = theFiles.Length
Me.ProgressBar1.Value = 1
Me.ProgressBar1.Step = 1
For Each currentFile As String In theFiles
My.Computer.Network.DownloadFile(currentFile, zm_katdoc & "\" &
Path.GetFileName(currentFile), "user", "pass", False, 10000, True)
Me.ProgressBar1.PerformStep()
Me.ProgressBar1.Refresh()
Next
====================================================
and i am a one problem. User may be access to this share...
In this:
Dim theFiles() As String = System.IO.Directory.GetFiles(zm_srv_sync &
zm_katzr, "*", SearchOption.AllDirectories)
Not assign a parameter "user" and "pass" but Getfiles no more option
A try to authenticate with Principal and Identity to another user and
next access to share with this code but not working
Please help. Thanks.
Maciej