Category : Utilities for DOS and Windows Machines
Archive   : SW200MAR.ZIP
Filename : SW.C

 
Output of file : SW.C contained in archive : SW200MAR.ZIP
/********************************************************************/
/* */
/* Ûßßß ßßÛßß ÛßßßÛ ÛßßßÛ Û Û ÛßßßÛ ßßÛßß Ûßßß Û Û */
/* Û Û Û Û Û Û Û Û Û Û Û Û Û Û */
/* ßßßÛ Û Û Û Ûßßßß Û Û ÛßßßÛ Û Û ÛßßÛ */
/* Û Û Û Û Û Û Û Û Û Û Û Û Û Û */
/* ßßßß ß ßßßßß ß ßßßßß ß ß ß ßßßß ß ß */
/* Stop Watch version 2.00 */
/* */
/* DISCLAIMER OF WARRANTY */
/* Stop Watch is sold without any expressed */
/* or implied warranties whatsoever. */
/* The user assumes the entire risk */
/* of using this program. */
/* The programmer and any assistants will not */
/* be held liable for any damages direct or */
/* consequential, caused through the use of this program. */
/* */
/********************************************************************/





#include /* Borland Libs */
#include /* Borland Libs */
#include /* Borland Libs */
#include /* Borland Libs */

void disp_help(void);

void main(int argc,char *argv[]){
long start, end, work=0l;
char cmdln[255];

if(argv[1][0]==63||argv[1][0]=='h'||argv[1][0]=='H') disp_help();
else if(argv[1][0]==47&&(argv[1][1]==63||argv[1][1]=='h'||argv[1][1]=='H')) disp_help();

else {
/***************************************************************/
/* For you code writers ! */
/* The next few lines are used to read parameters. */
/* */
/* The next 2 FOR loops read the parameters passed in SW */
/* one character at a time. */
/* These parameters are converted to a variable string called: */
/* cmdln */
/***************************************************************/

for(end=1;end for(start=0;argv[end][start]>0;start++) cmdln[work++]=argv[end][start];
cmdln[work++]=' ';
}
cmdln[work]=0;

start = biostime(0,0L); /* store start time in variable start */
system(cmdln); /* execute parameters passed in program SW */
end=biostime(0, 0L); /* store stop time in variable end */

end=end-start; /* total elapsed time stored in end */
end=end*1000/182; /* store second plus centiseconds in end */
start=end/100; /* store seconds in variable start */

if(start) end=end-(start*100);
work=end;

printf("\nStop Watch rev. 2.00 %6ld.%02ld Second(s) or",start,work);
end=start/60; /* store minutes in end */
if (end) start=start-(end*60);
printf("\nMarco Ramos (c) May 1993 %9ld Minute(s) %2ld.%02ld Second(s)"
,end,start,work);
printf("\n");
}
}

void disp_help(void){
clrscr();
printf(" Ûßßß ßßÛßß ÛßßßÛ ÛßßßÛ Û Û ÛßßßÛ ßßÛßß Ûßßß Û Û\n");
printf(" Û Û Û Û Û Û Û Û Û Û Û Û Û Û\n");
printf(" ßßßÛ Û Û Û Ûßßßß Û Û ÛßßßÛ Û Û ÛßßÛ\n");
printf(" Û Û Û Û Û Û Û Û Û Û Û Û Û Û\n");
printf(" ßßßß ß ßßßßß ß ßßßßß ß ß ß ßßßß ß ß\n");
printf(" Stop Watch version 2.00 \n");
printf("\n");
printf(" SW command [parameters] [switches]\n");
printf(" Examples: SW VER SW COPY C:\\TEMP\\*.* D:\\TEMP /V\n");
printf(" SW DIR SW XCOPY C:\\TEMP\\*.* D:\\TEMP /S/E/V\n");
printf(" SW CHKDSK SW DEL *.BAT\n");
printf(" SW CHKDSK D: SW MENU.BAT\n");
printf(" SW ? SW WP.EXE\n");
printf(" SW then type EXIT at DOS prompt.\n");
printf("\n");
printf(" ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»\n");
printf(" Support and encourage º Marco Ramos º\n");
printf(" your Shareware programmer º 3073 North Service Road º\n");
printf(" by sending $4.00 to: º Burlington Ontario Canada º\n");
printf(" º L7N 3G1 º\n");
printf(" ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ\n");
}


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : SW200MAR.ZIP
Filename : SW.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/