www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/01/09:34:31

From: Waldemar Schultz <schultz AT ma DOT tum DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Changing file protections
Date: Fri, 01 Jun 2001 11:55:31 +0200
Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 60
Message-ID: <3B176693.70E80856@ma.tum.de>
References: <3B17629C DOT B7A62B67 AT lps DOT u-psud DOT fr>
NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de
Mime-Version: 1.0
X-Trace: wsc10.lrz-muenchen.de 991389334 6480 131.159.68.151 (1 Jun 2001 09:55:34 GMT)
X-Complaints-To: news AT lrz-muenchen DOT de
NNTP-Posting-Date: 1 Jun 2001 09:55:34 GMT
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: de,en-US
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------7BEEBD04567AED6D6649F00F
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Daniel Taupin wrote:
> 
> Info chmod ist not explicite, and "chmod --help" no more, therefore:
> 
>  How can one use chmod to set/remove the "hidden" "system reserved"
> "archive" "read only" arributes of file? This is compulsorily needed
> under Win NT when a faulty file (esp. due tu virusses) is locked as
> "system busy" at bootstart (with NT there is no possible emergency
> access with native MS-DOS)?
> 
> If there is none, is there a C routine/subroutine abel to chenge these
> specific Windows/DOS attributes?

D:\W\98\COMMAND/attrib.exe (16 KB  13.03.2001  0:00)
attrib /?
Zeigt die Dateiattribute an oder ändert sie.

ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H]
[[Laufwerk:][Pfad]Dateiname] [/S]


  +   Aktiviert ein Attribut.
  -   Deaktiviert ein Attribut.
  R   Dateiattribut "Schreibgeschützt".  read_only
  A   Dateiattribut "Archiv".            archive
  S   Dateiattribut "Systemdatei".       system_reserved
  H   Dateiattribut "Versteckte Datei".  hidden
  /S  Verarbeitet Dateien in allen Verzeichnissen des angegebenen Pfads.


Or You might use the ancient 'chmod.com' (no LFN though)
Usage: CHMOD [r|R][h|H][s|S][a|A] <file> [...<file>]

-- 
 Gruss Waldemar Schultz.         schultz AT ma DOT tum DOT de
 Technische Universität München, Zentrum Mathematik M1, D 80290 München
 Tel: +49 (0)89 2892 8226        FAX: +49 (0)89 2892 8228
--------------7BEEBD04567AED6D6649F00F
Content-Type: application/x-unknown-content-type-comfile;
 name="CHMOD.COM"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="CHMOD.COM"

jMiO2I7A/L6AAKyiagKJNmgCv2wC6LgA43G+bAKsu00CiqcAAArkdDU64HQFg8MD6++LhwEA
ICZmAggGZwLi3bpsArQazSG/bALogwDjfeiyAHLz6NsA6NAAcuvr9lC6dwG0Cc0hWIrQtALN
IbqHAbQJzSHrFZBCYWQgbW9kZSBmbGFnICckJw0KJLqVAbQJzSHrOJBVc2FnZTogQ0hNT0Qg
W3J8Ul1baHxIXVtzfFNdW2F8QV0gPGZpbGU+IFsuLi48ZmlsZT5dDQoktEzNITPSiw5qAos2
aALoHwByDzwgdPeqQugUAHIEPCB19TLAqok2aAKJDmoCi8rD4wSsSfjD+cO6bAK5FwC0Ts0h
cwi6GQK0Cc0h+cNGaWxlIG5vdCBmb3VuZA0KJLpsArRPzSHDuooCsAC0Q80hCg5nAiIOZgK6
igKwAbRDzSHDcgD+UgH/aAD9SAL/cwD7UwT/YQDfQSD/AP8AAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
--------------7BEEBD04567AED6D6649F00F--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019