|
Ahhh. I didn't realize that OS/400 had implemented these DOS bits outside of QDLS. This was a hack so that DOS didn't need to implement real modification times or security measures... doesn't really make sense on OS/400 where both are already implemented. If you map the folder to a DOS drive letter, will the DOS ATTRIB command do the job? Otherwise, the API looks like it will do what you want. You could write a program that works just like the ATTRIB command if you think you'll want to use this from the AS/400 frequently... On Thu, 3 Jan 2002, Leland, David wrote: > > Okay, I need to step back here. I'm not really working in a *NIX > environment. I want to be able to manipulate the attributes to maintain > Windows compatibility. The attributes I'm talking about are the ones you > see when you do a WRKLNK and then choose option 8 (Display attributes): > > Hidden file . . . . . . . . . . . . . : No > PC system file . . . . . . . . . . . . : No > Read only . . . . . . . . . . . . . . : No > > Need to archive (PC) . . . . . . . . . : Yes > > It's sounding like the Qp0lSetAttr API is the only way to change these > attributes. > > Dave > > -----Original Message----- > From: Goodbar, Loyd (AFS-Water Valley) [mailto:LGoodbar@afs.bwauto.com] > Sent: Thursday, January 03, 2002 9:35 AM > To: 'midrange-l@midrange.com' > Subject: RE: Qp0lSetAttr()--Set Attributes > > > The attributes you mention, read-only, archive, hidden, and system, are > unique to DOS and Windows environments. There is no equivalent in *NIX > environments. How this is handled is dependant on the mechanism Windows & > *NIX systems (the IFS is a *NIX equivalent file system) use to communicate. > For example, when using Samba, the DOS attributes are mapped thus: > > owner group world > RWX RWX RWX > > Owner RW = read-only > Owner X = Archive? > Group X = System? > World X = Hidden? > > R = read, W = write, X = execute > > (source: <http://www.oreilly.com/catalog/samba/chapter/book/ch05_03.html>) > > Why do you need to manipulate these? Is it to maintain Windows > compatibility? > > HTH, > Loyd > > > -----Original Message----- > From: Leland, David [mailto:dleland@Harter.com] > Sent: Thursday, January 03, 2002 7:56 AM > To: 'midrange-l@midrange.com' > Subject: RE: Qp0lSetAttr()--Set Attributes > > I'm not looking for a command to change authorities of IFS files, I'm > looking for a way to change any of the 4 attributes of an IFS file - > "Read-only", "Archive", "Hidden" and "System". Just like the DOS ATTRIB > command or the Qp0lSetAttr API let you do. And I need to be able to do this > in a batch job (not thru Client Access or Operations Navigator). > > Dave
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.