ShellExecute函数用法的实例代码
来源:互联网 发布:jdk1.8源码下载 编辑:程序博客网 时间:2024/04/30 13:06
#include<windows.h>
#include<stdio.h>
int main()
{
//打开记事本
// ShellExecute(NULL, "open", "notepad.exe", NULL, NULL, SW_SHOWNORMAL);
//使用notepad.exe 打开指定文本,参数不要忘记加'\'
//ShellExecute(NULL, "open", "notepad.exe", "F:\\杂文件\\test.txt", NULL, SW_SHOWNORMAL);
//Unicode版本
//ShellExecute(NULL, TEXT("open"),TEXT( "notepad.exe"), TEXT("F:\\杂文件\\test.txt"), NULL, SW_SHOWNORMAL);
ShellExecute(NULL, TEXT("open"), TEXT("C:\\Program Files\\Internet Explorer\\iexplore.exe"), TEXT("bbs.cnhonker.com"), NULL, SW_SHOWNORMAL);
//ShellExecute(NULL, TEXT("open"), TEXT("C:\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe"), TEXT("bbs.cnhonker.com"), NULL, SW_SHOWNORMAL);
scanf("%*d");
return 0;
}
#include<stdio.h>
int main()
{
//打开记事本
// ShellExecute(NULL, "open", "notepad.exe", NULL, NULL, SW_SHOWNORMAL);
//使用notepad.exe 打开指定文本,参数不要忘记加'\'
//ShellExecute(NULL, "open", "notepad.exe", "F:\\杂文件\\test.txt", NULL, SW_SHOWNORMAL);
//Unicode版本
//ShellExecute(NULL, TEXT("open"),TEXT( "notepad.exe"), TEXT("F:\\杂文件\\test.txt"), NULL, SW_SHOWNORMAL);
ShellExecute(NULL, TEXT("open"), TEXT("C:\\Program Files\\Internet Explorer\\iexplore.exe"), TEXT("bbs.cnhonker.com"), NULL, SW_SHOWNORMAL);
//ShellExecute(NULL, TEXT("open"), TEXT("C:\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe"), TEXT("bbs.cnhonker.com"), NULL, SW_SHOWNORMAL);
scanf("%*d");
return 0;
}
0 0
- ShellExecute函数用法的实例代码
- ShellExecute 函数的用法和实例
- ShellExecute函数的用法
- ShellExecute函数的用法总结
- windows API 函数 ShellExecute 的多种用法
- windows API 函数 ShellExecute 的多种用法
- windows API 函数 ShellExecute 的多种用法
- windows API 函数 ShellExecute 的多种用法
- windows API 函数 ShellExecute 的多种用法
- c++ builder 中ShellExecute函数的用法
- ShellExecute函数相关用法
- ShellExecute ( ) 函数用法
- ShellExecute的用法
- ShellExecute的用法
- ShellExecute的各种用法
- Delphi ShellExecute的用法
- 调用 API 函数-ShellExecute实例
- delphi超级链接(ShellExecute函数用法)
- SDI无缝转换器与普通SDI转换器的区别?
- k-均值聚类算法;二分k均值聚类算法
- nyoj 1272 表达式求值--河南省第九届省赛A题
- Coroutine及其实现
- swift button
- ShellExecute函数用法的实例代码
- 静态链接库和动态链接库
- 198. House Robber
- 傅里叶变换 By ZZP&ZZL
- CUMT OJ 1012 漫长的旅程===走台阶问题
- SICP 练习2.12 make-interval-percent
- C#基础知识(二)——字符与类型转换
- 数据库多张表删除操作
- CSS应用:混合模式