Hi Craig,
if you really want to follow the deleting idea, here's a quick'm'dirty
hack for windows:
after 3rd failure do 2 things in projector:
a) write the following key to the registry, either with some capable
xtra or by executing vbscript as external file ("open ...") or with an
embedded ScriptControl:
key: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\deleteProj
value: "c:\del.vbs"
here is the vbs-code that would do it (2 lines):
Set shell = WScript.CreateObject("WScript.Shell")
shell.RegWrite
"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\deleteProj",
"c:\del.vbs", "REG_SZ"
b) create a text-file (eg. with fileIO) with the following code and save
it as "c:\del.vbs" (7 lines):
Set shell = WScript.CreateObject("WScript.Shell")
shell.RegDelete
"HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\deleteProj"
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.GetFile("c:\myPath\myProjector.exe")
a.Delete
Set a = fso.GetFile("del.vbs")
a.Delete
the file would be automatically executed after the next computer
restart. it deletes the registry key, deletes the projector file and
deletes itself. but you would still need some other measures to
deactivate the projector in the meantime before the next restart.
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!]