How can I make auto deletable my Main-GUI (*.exe) programm in specific date/time to prevent extra use?

조회 수: 2 (최근 30일)
Hi I write the GUI code and make it as *.exe (stand alone application). But I want to delete main file (*.exe) in specific date/Time to prevent extra use. How can I do this?

채택된 답변

Doug Hull
Doug Hull 2012년 12월 21일
This is a bad idea. Do not do this. People will be able to undo it anyways.
That being said, just call out to the system to delete the files.
delete('file.ext')
  댓글 수: 2
Morteza
Morteza 2012년 12월 21일
Thanks my friend for your answer but: If they have *.exe file they can change the date/Time of system back and use the program again.... Is there any way to make program that understand the current changed time is not real in system or make prevent the use of program again? because when I changed my computer date/Time I could use the program again. what should I do about this problem?
Walter Roberson
Walter Roberson 2012년 12월 21일
There are some cross-checks that can be done, such as examining the dates of other files to see if any of them are in the "future".
There are techniques such as contacting a remote site and asking it for the current time using an encrypted transmission. It is difficult to make this completely secure, though. (Quantum Encryption.)
If you are not able to use quantum secure channels, then there is no way to really prove what time it "really" is. At most you can make it a nuisance for people to break the software.
If your program is sufficiently valuable, then people will find a way to break it. There are people who specialize in doing this just to prove that they can, that they are more clever than you. Therefore the best way to ensure that your program does not get broken is to make your software so useless than no-one would want to use it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by