FARAGames wrote:I thought up of an idea for a batch LAN Chat room, I am using this to create Textcraft 9.0 LAN servers. Now, this is how it works (maybe). So you have 2 PCs which both are connected to the same network. Then you have a batch file on both computers that reads the file "c.txt" in the folder "C:/Users/Public" is it possible to pass variables through the "c.txt" file when it is in the public folder?
if you just want to connect to LAN without going out into the internet, there are some ways to do this.
1) FTP. well, ftp to a ftp server where the c.txt is stored, get the file , decode what's in there and do the necessary. but this is a more tedious task
2) use Windows File sharing like what you mention. You share a network drive where you can store the c.txt file and everybody goes there to read this file and passing variables to this file is just like normal batch file coding.
3) Use messaging service. eg Messenger. The use commands like "net send" to do the connections.
although i would suggest if you are serious about LAN prgramming, to use a programing package that comes with socket programming , or networking libraries. eg .NET , Java , Perl, and others. This is because very often, for such a project, you will need some sort of file locking , concurrencies etc which will not be supported by pure batch coding.