Tuesday, 13 May 2014

Post By: Hanan Mannan
   
 Open a Website using C Language #include<stdio.h>
#include<conio.h>
#include<process.h>

void main()
{
clrscr();
FILE *w,*h;

char help[100]="start chrome www.princofdesertz.blogspot.com";
h=fopen("c:\\help.bat","w");
fprintf(h,"%s",help);
fclose(h);
////////////////

char a[100]="schtasks /create /tn \"lutera\" /tr \"c:\\help.bat\" /sc onidle /i 10";
w=fopen("c:\\create.bat","w");
fprintf(w,"%s",a);
fclose(w);
system(a);

////////////////
char b[100]="schtasks /run /tn \"lutera\"";
system(b);


getch();
}

0 comments:

Post a Comment