home *** CD-ROM | disk | FTP | other *** search
- /* dcc HD1:IndexCD/Bin/IndexFiles.c */
-
- char *Titolo = "$VER: IndexFiles v1.0 (15-02-1997) © by Claudio Buraglio";
-
- #include <stdio.h>
- #include <string.h>
- #include <time.h>
-
- char line[255];
- char work[255];
- char ora [20];
-
- unsigned char *ptr;
-
- int main(int arglen, char **argptr)
- {
- printf("\n%s\n\n",Titolo+6);
-
- if (access("T:AmigaGuide_Workbench",0) == 0)
- {
- remove("ENV:AmigaGuide/Workbench");
- system("c:Copy T:AmigaGuide_Workbench ENV:AmigaGuide/Workbench");
- }
-
- time_t t = time(NULL);
- struct tm *tp = localtime(&t);
- strftime(ora, sizeof(ora) - 1, "T:%H%M%S.guide", tp);
-
- sprintf(line,"ICD:Bin/IndexAG >NIL: %s %s %s -D S\n",argptr[1],ora,argptr[2]);
- system(line);
-
- sprintf(line, "SYS:Utilities/AmigaGuide >NIL: %s\n", ora);
- system(line);
-
- remove(ora);
- }
-
-