我在想...如何要求用户激活我的程序?
我有一个程序,我想收钱。
它运行在Windows,并在VB和批处理文件大多是写...
我怎么能强迫用户购买产品密钥它,并激活它使用付费版?
提前致谢!
〜@层叠式
我在想...如何要求用户激活我的程序?
我有一个程序,我想收钱。
它运行在Windows,并在VB和批处理文件大多是写...
我怎么能强迫用户购买产品密钥它,并激活它使用付费版?
提前致谢!
〜@层叠式
这只是一个小例子显示,你可以限制你的程序的执行数,因此,如果达到最大执行数的程序会自动由他自行删除
@echo off
Setlocal enabledelayedexpansion
Title Count the number of times my BATCH file is run
Mode Con Cols=70 lines=7 & color 0E
Set /a MaxExecution=3
set /a count=1
set "FileCount=%tmp%\%~n0.dll"
If Not exist "%FileCount%" (
echo !count! > "%FileCount%"
) else (
For /F "delims= " %%a in ('Type "%FileCount%"') Do (
set /a count=!count! + %%a
echo !count! > "%FileCount%"
)
)
echo.
echo This Program is running for "!count!" time(s)
Call :SelfDelete
pause>nul & Exit /b
::**************************************************************
:SelfDelete
echo.
If !count! GTR !MaxExecution! (
Color 0C
echo The maximum execution of this "%~nx0" is set to "!MaxExecution!"
echo and it is reached & Timeout /T 5 /Nobreak>nul & Del %~f0
) else (
echo The counting is "!count!" and the max is set to "!MaxExecution!"
)
Goto :EOF
::**************************************************************
好主意,不幸的是,用户将prob。知道批... –
任何其他的想法? –
通过使用编译的语言。你问的是如何强制用户在源代码可以免费获得的情况下激活一个程序(据我所知,这个主题没有研究,因为这太不合逻辑了)。我能想到的最好的办法就是用一堆校验和碰撞来强制一串字符串,并将这些字符串用作产品密钥。 – SomethingDark
如果用户不知道如何读取批处理文件,可以让他执行你的程序3次,否则你会自动删除; – Hackoo
我不能将它制作成Store应用程序,因为我希望它也能在传统机器上运行。我正在Windows 10 btw上开发它。 所以,是的,没有一个选项。 –