Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking and connecting to windows shares with vb

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
I am researching VB 6's capabilities to interface with windows shares from a programming level and not through mapped drives.

Would I would like to be able to do is transfer log files from one computer through the netbios protocol from one computer to another. The reason, there is no means to set up an ftp service and visable shares (ie mapped drives) would pose a risk that average users could go poking around in places where they should not be.

the idea would be that the program would sit on a computer (not necessarly the source or the destination computer, but somewhere on the network at least) and at specified intervals it would initiate a file transfer.

What I need to now is, can VB check a specific ip and see if that computer can share directories? Can it get a file listing from this? Can it also input passwords? If it can do this, would should I be looking at in Vb (controls, custom code, etc..). Most of this stuff is new to me, I just need a pointer in the right direction, especially in regards to detecting shares.

any help would be appreciated,



Troy Williams B.Eng.
fenris@hotmail.com

 
This can be done Very Easily using VB's Tcp/IP and Network controls. I personally would reccommend using Catalyst's Socketwrench controls for TCP/IP etc. You can check them out at
What you are trying to do is pretty involved, but Yes it can be done.

John Stephens
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top