This is a shot in the dark, but I'm pretty sure VB can do this. I'll give some background on the problem first.
I work at a casino and we use embossers to print cards for players. We currently 3 different embossers that can be switched to in order to print different cards. We have a program that is run that asks a simple A, B or C to switch it. Unfortunately, we don't know who created the original file, but we figured out what it does. Basically it goes into our Oasis.ini file and searches for the line that says this:
[Card]
embossprinter=\ \acijpnt32\ACIJ PPRN103
The last number can either be a 3, 4, or 5. We are attempting to move these embossers to our new print server, but to do so, we have to recreate a program that can go into the Oasis.ini file, search for the above mentioned line, and change the last part of the code. The new line would need to look something like this:
[Card]
embossprinter=\ \acijpnt30\ACIJ PPRN090
the last can be 091, 092, 093, 094 or 095 (we are planning to add a few embossers in as well so we are including the range for that).
A friend of mine looked some stuff up and said that we could set the first part as the constant that it looks for and set the last part as the variable that we can change. Unfortunately, any of the coding I've found hasn't helped at all in doing this. If anyone has some insights on this, that'd be great.
Thanks!
I work at a casino and we use embossers to print cards for players. We currently 3 different embossers that can be switched to in order to print different cards. We have a program that is run that asks a simple A, B or C to switch it. Unfortunately, we don't know who created the original file, but we figured out what it does. Basically it goes into our Oasis.ini file and searches for the line that says this:
[Card]
embossprinter=\ \acijpnt32\ACIJ PPRN103
The last number can either be a 3, 4, or 5. We are attempting to move these embossers to our new print server, but to do so, we have to recreate a program that can go into the Oasis.ini file, search for the above mentioned line, and change the last part of the code. The new line would need to look something like this:
[Card]
embossprinter=\ \acijpnt30\ACIJ PPRN090
the last can be 091, 092, 093, 094 or 095 (we are planning to add a few embossers in as well so we are including the range for that).
A friend of mine looked some stuff up and said that we could set the first part as the constant that it looks for and set the last part as the variable that we can change. Unfortunately, any of the coding I've found hasn't helped at all in doing this. If anyone has some insights on this, that'd be great.
Thanks!
Comment