I've just noticed there is a much easier solution, which works for all
windows versions (see http://support.microsoft.com/?kbid=137367):

you could directly write the following key to the registry:
key:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce\del
eteProj"
value: "'command.com /c del c:\myPath\myProjector.exe"

you could do this with an xtra, so you wouldn't need any vbs-code. the
projector gets deleted after next restart, and the registry key will be
deleted automatically .

valentin



Craig Taylor wrote:
> Good Afternoon,
>
> I have a program that is password protected.  Very simple structure
> at the
> moment - alerts the user that they entered an incorrect password and
> they
> have "x" attempts left out of a possible 3 trys.  What the client
> wants
> is... if you fail on all three attempts the program will not launch
> again
> unless it is re-installed.  I was toying with the idea of deleting the
> projector after three failures - write to an external file that
> prompts this
> action??  Is this possible or is there a better way altogether?
>
> Thanks,
> -_Craig
>
>
> Craig Taylor
> Renegade Digital Media Inc.
> E: [EMAIL PROTECTED]
>
>
> [To remove yourself from this list, or to change to digest mode, go
> to http://www.penworks.com/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email
> [EMAIL PROTECTED]). Lingo-L is for learning and helping with
> programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to