Difference between revisions of "Anydrive.c"
From Organic Design wiki
(get download) |
m |
||
Line 4: | Line 4: | ||
#include <fcntl.h> | #include <fcntl.h> | ||
− | # [[[[http://www.organicdesign.co.nz/wiki/images/e/ee/Anydrive.exe| | + | # Download the win32 binary from [[[[http://www.organicdesign.co.nz/wiki/images/e/ee/Anydrive.exe|here]]]] |
int main() { | int main() { |
Revision as of 09:02, 10 November 2006
- include <stdlib.h>
- include <stdio.h>
- include <string.h>
- include <fcntl.h>
- Download the win32 binary from [[[[1]]]]
int main() { int c = 'C'; char file[20], cmd[20];
do { sprintf(file,"%c:\\index.html",c++); } while ((open(file,O_RDONLY)<0) && (c <= 'Z'));
if (c <= 'Z') { system(file); } else { printf("No can do sir!"); }
return 0; }