Category : C Source Code
Archive   : C-AIDS-8.ZIP
Filename : JZSETATR.DMO
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.");
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/