Category : C Source Code
Archive   : C-AIDS-8.ZIP
Filename : JZSETATR.DMO

 
Output of file : JZSETATR.DMO contained in archive : C-AIDS-8.ZIP
#include "jzdirect.h"
main(argc,argv)
int argc;
char **argv;
{

char name[50];
int attr,werror,attrcode,old;
TDIR wdir;

if (argc < 3) {
printf("\nThis small program allows you to change file attributes");
printf("\nby specific file name or using wildcards.");
printf("\n- Jack A. Zucker (Jaz) 75766,1336");
printf("\n\nUSAGE: jzsetatr ");
exit();
}

werror = jzfndfst(*++argv,0xFF,&wdir);

if (werror == 0) {
attr = atoi(*++argv);
do {
old = jzgetatr(wdir.name);
attrcode = jzsetatr(wdir.name,attr);
if (attrcode == 0)
printf("\nChanging attribute of %s from %d to %d",wdir.name,old,attr);
else
printf("\nUnable to change attribute of %s",wdir.name);
werror = jzfndnxt(&wdir);
} while (werror == 0);
}
else
printf("\nNo matching Files.");
}



  3 Responses to “Category : C Source Code
Archive   : C-AIDS-8.ZIP
Filename : JZSETATR.DMO

  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/