diff --git a/ReadMe.md b/ReadMe.md index 24c6b5a..0ddb401 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -8,7 +8,7 @@ ## 待添加功能 -* [ ] +* [ ] 下周一也可以运行 ## 运行程序 @@ -26,3 +26,7 @@ new file name: 2023WW33周工作报告_冯博涵.doc; pre_str: 8.7~8.11 str: 8.14~8.18 ``` + +## 注意 + +1. `创建桌面快捷方式.bat`该文件是 `GBK`编码。 diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..0ecc634 Binary files /dev/null and b/favicon.ico differ diff --git a/创建桌面快捷方式.bat b/创建桌面快捷方式.bat new file mode 100644 index 0000000..3b776bc --- /dev/null +++ b/创建桌面快捷方式.bat @@ -0,0 +1,57 @@ +chcp 936 +REM 936ֹijЩ·ʧЧ +@echo off +setlocal enabledelayedexpansion +mode con cols=94 lines=30&color 0a&title ݷʽ +echo. +echo [+] õǰ·:%~dp0 +set path=%~dp0auto_run_python.bat +echo. +if exist %path% ( +echo [+] ֽűauto_run_python.bat +echo. +echo [+] ű· +echo. +echo [+] %path% +echo. +goto :creat +) else ( +echo [-] ע,δűֽűauto_run_python.bat,עǷ,˳... +echo. +pause +exit +) +:creat +echo [+] ʼݷʽ... +echo. +rem ó·(Ҫ) +set Program=%path% +rem ÿݷʽ(Ҫ) +set LinkName=дܱ +rem · +set WorkDir=%~dp0 +rem ÿݷʽ˵ +set Desc=дܱ +rem ÿݷʽͼ +set icon=%~dp0/favicon.ico +if not defined WorkDir call:GetWorkDir "%Program%" +(echo Set WshShell=CreateObject("WScript.Shell"^) +echo strDesKtop=WshShell.SpecialFolders("DesKtop"^) +echo Set oShellLink=WshShell.CreateShortcut(strDesKtop^&"\%LinkName%.lnk"^) +echo oShellLink.TargetPath="%Program%" +echo oShellLink.WorkingDirectory="%WorkDir%" +echo oShellLink.WindowStyle=1 +echo oShellLink.Description="%Desc%" +echo oShellLink.IconLocation="%icon%" +echo oShellLink.Save)>makelnk.vbs +echo [+] ݷʽɹ!! +echo. +makelnk.vbs +del /f /q makelnk.vbs +pause +goto :eof +:GetWorkDir +set WorkDir=%~dp1 +set WorkDir=%WorkDir:~,-1% +pause +goto :eof \ No newline at end of file