标签:taskkill file pad warnings 最大 windows efi war kill
#define _CRT_SECURE_NO_WARNINGS
#include<stdlib.h>
#include<windows.h>
#include<stdio.h>
void open()
{
//start不能带路径,需要提前进入目录
system(" \"C:\\Program Files (x86)\\Tencent\\QQ\\QQProtect\\Bin\\QQProtect.exe\"");
}
void openqq()
{
ShellExecuteA(0, "open", "\"C:\\Program Files (x86)\\Tencent\\QQ\\QQProtect\\Bin\\QQProtect.exe\"", 0, 0, 1);
//ShellExecuteA(0, "open", "notepad", 0, 0, 6);
//0隐藏,1正常,3最大化,6最小化
}
void close()
{
system("taskkill /f /im QQ.exe");
}
void times()
{
int num=0;
scanf("%d",&num);
int i=0;
while(i<num)//i《m不再循环
{
Sleep(1000);
i++;
printf("%d", i);
}
}
void main()
{
//openqq();
open();
times();
close();
}
标签:taskkill file pad warnings 最大 windows efi war kill
原文地址:http://www.cnblogs.com/bossbo/p/6005677.html