Initial commit with README

This commit is contained in:
GVSADS
2026-01-25 17:01:16 +08:00
commit 246bbd8fd9
106 changed files with 2071 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
shutdown 关闭终端
help 帮助
startMik 启动MikOS
setting 设置
repair 修复运行环境
time 时间
open 打开
restart 重启

View File

@@ -0,0 +1,10 @@
shutdown 关闭终端
help 帮助
startMik 启动MikOS
setting 设置
repair 修复运行环境
time 时间
open 打开
restart 重启
about 关于
setting 设置

View File

@@ -0,0 +1 @@
{"Debug":"True"}

View File

@@ -0,0 +1,2 @@
选项名称 值1(最小值)/值2(最大值)
Debug True/False

View File

@@ -0,0 +1,31 @@
"""
本程序为MikDOS的运行库
变量path为DOS工作目录p_path为DOS上级目录
"""
import os, time
#帮助指令
def helpdos(path):
with open(path + '\\DOS\\file\\Command.txt', mode='r', encoding='utf-8') as cmd:
file = cmd.read()
print(file)
#启动MikOS
def startmik(p_path):
os.startfile(p_path + '\\logon.pyw')
#打开设置
def setting(p_path):
os.startfile(p_path + '\\setting\\setting.pyw')
#打印时间
def p_time():
print(time.ctime())
#延时打印(故意滴doge)
def show_later():
time.sleep(1)
def dos_config(path):
print('请阅读下面的教程')
print('---------------------------------')
with open(path + '\\DOS\\file\\config_eg.txt', mode='r', encoding='utf-8') as config_eg:
file_con_eg = config_eg.read()
print(file_con_eg)

View File

@@ -0,0 +1,45 @@
import os, sys
import DOS.lib.DOSLib as DOSLib
from DOS.lib.DOSLib import show_later
# 获取工作目录、上级目录
path = os.path.dirname(os.path.realpath(sys.argv[0]))
parent_path = os.path.abspath('.')
#打印系统信息
print('MikDOS V1')
print('© Ark Krin Studio MikOS Dev Team 保留所有权利')
while True:
#获取用户输入
inp = input('MikDOS>>')
#统一输入格式
comd = inp.lower()
#判断
#帮助
if comd == 'help':
show_later()
DOSLib.helpdos(path)
#关机
elif comd == 'shutdown':
print('正在关闭')
show_later()
sys.exit()
#启动MikOS
elif comd == 'startmik':
show_later()
DOSLib.startmik(parent_path)
sys.exit()
#打开设置
elif comd == 'setting':
show_later()
DOSLib.setting(parent_path)
#打印时间
elif comd == 'time':
show_later()
DOSLib.p_time()
#未输入指令
else:
print(inp, '不是一个可以执行的命令')
continue