home *** CD-ROM | disk | FTP | other *** search
- Program
- KeyMake;
-
- Uses
- KeyCode;
-
- Var
- A,B,C,D,Reg: String;
- f: Text;
-
- Begin
- C := '';
- C := ParamStr(1);
- If C = '' then
- Begin
- WriteLn('');
- WriteLn('No parameter on command line...');
- WriteLn('');
- Exit;
- End;
- A := 'FdMsg';
-
- {-----------------------------------------------}
- { }
- { If Registered version remove above line and }
- { replace it with the below line to make a }
- { demo key that would expire on 12/05/96 }
- { }
- { A := 'FdMsg|12/05/96'; }
- { }
- {-----------------------------------------------}
-
- B := 'fdm';
- D := 'Mary Westcott';
- CodeIt(a,b,c,d);
- A := 'FdMsg'; {This line needed if you are using a registered ver}
- {It removes the demo date when decodeing key}
- {Do NOT give demo date when decoding}
-
- {-----------------------------------------------}
- { }
- { The 2 lines below these comment lines will }
- { decode and print the key just made. }
- { }
- {-----------------------------------------------}
-
- Reg := DeCodeIt(a,b,'','');
- WriteLn(Reg);
-
- Assign(f,'Key.Log');
- {$I-}
- Reset(f);
- {$I+}
- If IOResult <> 0 then
- Begin
- ReWrite(f);
- WriteLn(f,' Key Log for program ' + A);
- WriteLn(f,'');
- End;
- Close(f);
- Append(f);
- WriteLn(f,'User: ' + D + ' Reg #: ' + C + ' Prog #: ' + B);
- Close(f);
- End.
-