会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ibingshan
Tech-Artist
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
2019年5月30日
python subprocess popen 静默模式(不弹出console控制台)
摘要: python subprocess popen 静默模式(不弹出console控制台) 参考链接:https://blog.csdn.net/ztb3214/article/details/19256849?utm_source=blogxgwz9
阅读全文
posted @ 2019-05-30 17:55 ibingshan
阅读(3571)
评论(0)
推荐(0)
2019年5月28日
python __file__ is not defined 解决方法
摘要: python __file__ is not defined 解决方法 __file__ 是在python module 被导入之后的时候生成的一个变量,所以在 __file__ 不能被使用,但是又想获取当前文件的路径应该怎么做: 方法一: import inspect, os.path filen
阅读全文
posted @ 2019-05-28 14:55 ibingshan
阅读(9548)
评论(0)
推荐(2)
2019年5月22日
bat 获取当前文件夹的文件名
摘要: bat 获取当前文件夹的文件名
阅读全文
posted @ 2019-05-22 17:37 ibingshan
阅读(6663)
评论(0)
推荐(0)
bat 获取当前目录的父目录
摘要: bat 获取当前目录的父目录 @echo off echo batchfile=%0 echo full=%~f0 setlocal for %%d in (%~dp0.) do set Directory=%%~fd echo Directory=%Directory% for %%d in (%
阅读全文
posted @ 2019-05-22 17:22 ibingshan
阅读(4902)
评论(0)
推荐(0)
bat echo 每行不同的颜色
摘要: bat echo 每行不同的颜色 先看代码: 使用注意事项: 1.你的代码放在 :start 和第一行 goto :eof之间 2.换行使用 echo. 3.最好使用双引号把内容括起来,不然遇到空格就会报拒绝访问的错误,内容如果包含特殊字符(例如:"a:!aa" 等等,一般是win不允许我们用来命名
阅读全文
posted @ 2019-05-22 16:19 ibingshan
阅读(5406)
评论(0)
推荐(0)
bat 判断命令是否执行成功
摘要: bat 判断命令是否执行成功 连接符形式,&& 表示成功,|| 表示失败,例如: call xxx.bat && (goto succeed) || goto failed :succeed echo successfully :failed echo failed pause 使用%errorle
阅读全文
posted @ 2019-05-22 15:24 ibingshan
阅读(8358)
评论(0)
推荐(0)
2019年5月17日
Python 获得程序 exe 的版本号
摘要: Python 获得程序 exe 的版本号 python中需要安装 pywin32 包
阅读全文
posted @ 2019-05-17 16:12 ibingshan
阅读(1551)
评论(0)
推荐(1)
2019年5月16日
Python 列出 windows 安装的软件
摘要: Python 列出 windows 安装的软件 参考链接:https://stackoverflow.com/questions/802499/how-can-i-enumerate-list-all-installed-applications-in-windows-xp
阅读全文
posted @ 2019-05-16 16:45 ibingshan
阅读(847)
评论(0)
推荐(0)
2019年5月15日
bat 判断变量字符串中是否包含字符串
摘要: bat 判断变量字符串中是否包含字符串 代码注释: 在 way 1 中,加了 >nul 就可以不打印 echo 的内容, way1 可以不设置 setlocal
阅读全文
posted @ 2019-05-15 10:23 ibingshan
阅读(19600)
评论(2)
推荐(0)
bat 读取 ini 配置文件
摘要: bat 读取 ini 配置文件 config.ini: .bat: 注意:.bat 和 config.ini 在同一个文件夹 参考链接:https://www.cnblogs.com/urwlcm/p/4433871.html
阅读全文
posted @ 2019-05-15 09:32 ibingshan
阅读(5208)
评论(1)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
公告