原型:
ShellExecuteA(0, "open", "notepad", 0, 0, 3);//最大化打开记事本

第一个参数//系统启动
第二个参数//open打开
第三个参数//指令
第四个参数//默认0
第五个参数//默认0
第六个参数//0隐藏 3最大化 6最小化 其余正常

ShellExecuteA函数

 

 

ShellExecuteA(0, "open", "www.baidu.com", 0, 0, 3);//打开百度网站
ShellExecuteA(0, "open", "tasklist", 0, 0, 1);//执行tasklist命令

ShellExecuteA(0, "open", "C:\\Users\\Administrator\\Desktop\\笔记2.txt", 0, 0, 3);//打开txt文件

ShellExecuteA(0, "print", "C:\\Users\\Administrator\\Desktop\\翻译.docx", 0, 0, 0);//调用打印机打印

 

相关文章:

  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-08-14
  • 2021-07-04
  • 2022-12-23
  • 2021-08-18
  • 2021-11-05
  • 2021-11-26
  • 2021-12-20
相关资源
相似解决方案