Thread: Search GMS File
View Single Post
  #1  
Old 09-05-2008, 13:45
bprice's Avatar
bprice bprice is offline
Member
 
Join Date: Oct 2006
Location: Edmundston, New Brunswick, Canada
Posts: 89
Default Search GMS File

Hey Everyone,
I made a small "updater" for GMS files over a network. It works great, however I'd like to try and make it only copy a GMS file based on a specific computer. If I put Y.GMS in a folder on the server, users A & C will use it, and users B & D don't need it. The way I have it working now, users A,B,C,D all get the GMS file.

What I'm curious to know is, if I create a module inside my GMS with a set of names in it... and names only (just text for example), is there a way to have one GMS (my updater on everyones machine) run code that searches text of another GMS file (the file on the server thats updated)?

Basically, my GMS file runs and says if X Module in Y.GMS file contains the text ABC, and my machine name equals ABC, copy Y.GMS file to my computer!

I have the script done for the file copying, and the machine name identification... I'm just wondering if there is an easy way to have one GMS file search another for text!

Any help would be appreciated!

Thanks in advance!
B
Reply With Quote