jfgambit
Kinetic Card Dealer
- Local time
- Today, 11:58
- Joined
- Jul 18, 2002
- Messages
- 798
Hello All:
I have written a module that creates a .bat file and runs it to generate a specific Lincese key for a customer. The procedure works great:
1. Creates the .bat file
2. Pauses while the DOS cmd opens
3. SendKeys ENTER to run the .bat
4. .bat returns a .txt file containing the license key.
I'm trying to find a way to open the .txt file and grab the last line (the key) and update the customers license key field in my form with the key that is generated.
Same of the .txt file:
The current date is: Tue 05/17/2005
Enter the new date: (mm-dd-yy) ECHO is on.
license key generation
CheckSum=87
rg67775ghbyt43e
Thanks
I have written a module that creates a .bat file and runs it to generate a specific Lincese key for a customer. The procedure works great:
1. Creates the .bat file
2. Pauses while the DOS cmd opens
3. SendKeys ENTER to run the .bat
4. .bat returns a .txt file containing the license key.
I'm trying to find a way to open the .txt file and grab the last line (the key) and update the customers license key field in my form with the key that is generated.
Same of the .txt file:
The current date is: Tue 05/17/2005
Enter the new date: (mm-dd-yy) ECHO is on.
license key generation
CheckSum=87
rg67775ghbyt43e
Thanks