A
A
Alexey Koval2015-11-23 14:37:19
Windows
Alexey Koval, 2015-11-23 14:37:19

How to block the program after the 1st launch?

Dear!,
on the computers of the classroom there is software for testing employees.
Upon completion of the test, the program prints the results and closes.
Is there a native way or software solution that allows you to open the program once, do everything you need there, and then not open during the day, for example?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MiiNiPaa, 2015-11-23
@MiiNiPaa

From accidental launch: just write down the date of the last normal launch of the program. If someone tries to run again, give an error message and close.
From a deliberate attempt to deceive the application: impossible. If someone has physical access to a computer, they can do whatever they want with it.
You can make a program on the principle of client-server.

V
Vladimir Martyanov, 2015-11-23
@vilgeforce

You can assign a "debugger" to your application that will prevent it from running. See HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options

A
Alexey S., 2015-11-23
@Winsik

Something like this:

@echo off
IF NOT exist "prgUUID.%DATE%.txt" (
        del prgUUID.??????????.txt
  echo %DATE% >"prgUUID.%DATE%.txt"
  echo First start programm ...
) ELSE 	(
  echo Upps.... 
  )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question