V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
pein

撸了个 WiFi 分享小脚本,让你的电脑变成无线 AP 热点

  •  
  •   pein · Sep 14, 2015 · 3181 views
    This topic created in 3888 days ago, the information mentioned may be changed or developed.

    方便起见,把命令都写到一起了,不用自己一个一个输。
    http://ww4.sinaimg.cn/mw690/69e23056gw1ew1u53qnnzj20df09cdfy.jpg

    下载:

    https://github.com/peinhu/WiFi-sharing-controller

    右下 Download ZIP

    8 replies    2015-09-16 13:57:09 +08:00
    shuiyingwuhen
        1
    shuiyingwuhen  
       Sep 14, 2015 via Android
    謝謝 我先收藏了
    bazingaterry
        2
    bazingaterry  
       Sep 15, 2015
    锐捷可破?
    pein
        3
    pein  
    OP
       Sep 15, 2015
    @bazingaterry 锐捷是什么。。
    CodeDrift
        4
    CodeDrift  
       Sep 15, 2015
    @bazingaterry 看了一下 bat 。 锐捷不可以。
    zjqzxc
        5
    zjqzxc  
       Sep 15, 2015
    曾经写过一个,,不过后来被我弄没了。
    可以启动后直接查询承载网络设置是否存在,若存在则直接启动。 netsh wlan show hostednetwork 然后字符字符串处理判断配置文件是否存在。若存在则直接启动承载网络。
    当然,还可以判断承载网络是否已开启,来实现双击开启 /关闭承载网络。

    网络启动后可以提示用户是否需要修改承载网络信息(比如说按某个键)或按任意键关闭这个黑框框。
    pein
        6
    pein  
    OP
       Sep 16, 2015
    @zjqzxc 嗯,这种很方便,懒人专用哈哈
    cookie
        7
    cookie  
       Sep 16, 2015   ❤️ 1
    pein
        8
    pein  
    OP
       Sep 16, 2015
    @cookie 感谢告知,发生这种问题实在是万分抱歉!我自己测试上传后没有再下载下来测试。
    这个编码问题简直就是个巨坑,从中午搞到现在,提交了 N 多个 commit ,换了两个 git 控制工具后,终于发现是 git 工具在上传的时候自行把 WIN 的换行符转换成了 UNIX 的。
    现在已经重新提交了 https://github.com/peinhu/WiFi-sharing-controller/archive/master.zip
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3052 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 15:06 · PVG 23:06 · LAX 08:06 · JFK 11:06
    ♥ Do have faith in what you're doing.