nyfedit無限延長試用期

來源:互聯網
上載者:User

標籤:des   style   color   使用   os   檔案   for   ar   

myBase Desktop 是一款非常不錯的知識管理工具,不註冊只能試用30天,使用以下方法可以讓到期軟體恢複成試用30天,非常簡單。

1.開啟軟體根目錄下的nyfedit.ini檔案,找到App.UserLic.FirstUseOn=1295074923
   這個參數記載著第一次開啟此軟體的時間,這個參數遵循Unix時間戳記,只需要修改這個Unix時間戳記為你現在的時間,試用期就會變回30天。
2.使用以下python指令碼,在每次啟動的時候對時間進行設定,設定完畢啟動nyfedit.exe應用程式
3.設定捷徑由本指令碼啟動

#coding=utf-8

import time
import os

#myBase Desktop 是一款非常不錯的知識管理工具。
#不註冊只能試用30天,使用以下方法可以讓到期軟體恢複成試用30天,非常簡單。
#
#1.開啟軟體根目錄下的nyfedit.ini檔案,找到App.UserLic.FirstUseOn=1295074923
# 這個參數記載著第一次開啟此軟體的時間,這個參數遵循Unix時間戳記。
# 只需要修改這個Unix時間戳記為你現在的時間,試用期就會變回30天。
#2.使用本python指令碼,在每次啟動的時候對時間進行設定,設定完畢啟動nyfedit.exe
#

content = open(‘nyfedit.ini‘,‘r‘).readlines()
file = open(‘nyfedit.ini‘,‘w‘)
print len(content)
for line in content:
  n = line.find("App.UserLic.FirstUseOn")
  if n!=-1:
    line = "App.UserLic.FirstUseOn=" + str(time.time()) + "\r\n"
    print line
  file.write(line)
file.flush()
file.close()

os.system("start nyfedit.exe");

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.