Python通过ctypes调用windows api函数ShellExecute,ctypesshellexecute,#!c:/python2
文章由Byrx.net分享于2019-03-23 09:03:15
Python通过ctypes调用windows api函数ShellExecute,ctypesshellexecute,#!c:/python2
#!c:/python27/python.exe#-*- coding:utf-8 -*-"执行程序"import ctypes;handler = None;operator = "open";fpath = r"D:\\Program Files\\TTPlayer\\TTPlayer.exe";param = None;dirpath = None;ncmd = 1;shell32 = ctypes.windll.LoadLibrary("shell32.dll");shell32.ShellExecuteA(handler,operator,fpath,param,dirpath,ncmd);#该片段来自于http://byrx.net
相关内容
- 输出乘法表到excel,输出乘法表excel,暂不支持xlsx格式
- 淘宝面试题猜数字游戏,淘宝试题猜数字,CNT 看到一个
- 太极,,matplotlib画散
- Python脚本写的命令行下的词典,python脚本,这个一个非常
- python 获得当前线程对象实例,python当前,python中的Thre
- 将经纬度转换为kml文件,经纬度转换kml文件,读取文件,
- Python下载百度空间文章,python百度文章,保存图片到本地
- python下载文件时显示下载进度的代码,,def report(c
- Python3腾讯微博自动发帖小工具,python3腾讯发帖,# -*-
- 下载“音乐太” 的mv,下载音乐mv,使用于linux, wi
评论关闭