Open
Conversation
ly0
requested changes
Nov 5, 2016
| chcp 936 | ||
|
|
||
| :: path for python27 | ||
| set py=C:\Python27\python.exe |
Member
There was a problem hiding this comment.
不要用绝对路径,请想办法获取到PATH中python的安装路径,或者提供交互式的界面设置python的路径。
| :: path for python27 | ||
| set py=C:\Python27\python.exe | ||
| :: path for newclient.py | ||
| set login=C:\Python27\newclient.py |
Member
There was a problem hiding this comment.
如果要做成one-click式的脚本,请提供以下的功能
- 自动下载最新的
newclient.py - 有交互式界面来配置脚本
- 脚本和
newclient.py需要是一个文件。
|
我也写了个bat,但不知道为什么就是不能挂在后台,python和pythonw都不行(用以前的客户端都可以挂在后台没有cmd)。。。然后就干脆把用计划任务开机自启了。奇怪的是如果在参数里设定newclient的位置,比如F://newclient.py就会启动失败,但参数只写newclient.py然后初始位置设置成F://就可以,也是醉了。。。顺带,我mac上现在使用shell脚本开机自启来实现开机登陆(需要将进程fork成子进程才能在后台),然后我尝试plist(mac自己的开机启动方式)也失败了。。。 |
|
为什么不试试 拿pyinstaller 封装成exe呢? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

每次登陆校园网操作多步很麻烦,于是写了个bat文件,window用户可以放在桌面上,每次一键登陆。
----from JLU