Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

find a machine on a peer-to-peer network

I have developed a small program for use at our local shooting-range.  We have two computers connected through network-cards/coax.  Pc no. 1 register information about the shooter, pc no.2 register shooting result and then pc no.1 print out the result.  They are both working on a .mdb file on pc no. 1, and I use a common dialog to connect pc no. 2 to the .mbd file.

Is there a way for me to get my program to automatically find the other pc on the network and get the name of the .mdb-file ??
0
Anthon
Asked:
Anthon
1 Solution
 
traygreenCommented:
Sure,
On computer 1 share the drive on which the MDB exists.
On computer 2 map the drive that you shared on computer 2
From there it is pretty easy to do.
Just use your common dialog to allow the user/program to attach to the mdb, or better yet, store the path in an ini file for connecting to the database.  Then you would only display the dialog if the file or computer is unaavailible
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now