Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Remote folder (and files)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lewix - 24 Jul 2007 16:17 GMT
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?

Thank you for your help.

Regards,
Lewix
OKO - 24 Jul 2007 20:07 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.