remove the drectory attribute with cmd

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
batchcc
Posts: 139
Joined: 17 Aug 2015 06:05
Contact:

remove the drectory attribute with cmd

#1 Post by batchcc » 27 Aug 2015 15:47

Is it possible to remove the directory attribute from folders or add it to files using command prompt?

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: remove the drectory attribute with cmd

#2 Post by penpen » 28 Aug 2015 10:23

As far as i know, it should be impossible under all MS-Windows and MS-DOS versions (even when using c++, except if you program the complete Interface on your own).
You may be able to do that with a Disk-Editor, but be warned that this probably produce unepected results:
Under certain conditions it may also damage your Hardware (for example if such a "file" is used as a hdd-driver; but there are also other possibilties).

So: You have to do it on your own risk.

If you still want to do this, the following links may help you:
http://read.pudn.com/downloads81/sourcecode/windows/system/315403/E%20NTFS%20On-Disk%20.pdf
https://msdn.microsoft.com/en-us/library/bb470206(v=vs.85).aspx


penpen

Post Reply