That means constantly checking to see if the file has been updated, or indeed exists...
What you really want to do is have a look at a thing called the Winsock control... That is used for passing info between PCs - I once wrote an app for transferring the content a text box on One PC to a textbox on another - and that worked with Winsock...
Yes, but as a professional I really would encourage you not to use the file method... For one thing constantly pinging the hard drive every half second is a bit pointless...
If you use WinSock, you'll get a nice little event to latch onto one a computer tries to send info to you... And I think it stores the hostname that sent the info as a property too!
But, if you'll insist on using files, read about the Windows32 API. There's bound to be a function in their for finding the name of the computer you are on - so have the sending machine build it's name into the text file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.