Contents |
Effect
Sets or changes the attributes of directories under MSX-DOS 2 / Nextor to make them hidden or not hidden.
Notes:
- The directories without attribute are not hidden
- Unlike files, directories cannot be made read only, system directory or archived.
- The DIR command can be used to indicate the current attributes of folders.
Syntax
ATDIR +|-H /H /P <Device>:\<Path> + <Device>:\<Path>...
Notes:
- Character backslash (\) serves as a separator between the folders and the file name in MSX-DOS2. You don't have to put it after the colon of the device name. Backslash is replaced by the character yen (¥) on Japanese MSX or the character won (₩) on Korean MSX.
- Character slash (/) serves to declare an option. You can put the options after the command or behind all other parameters.
Parameters
<Device> is the name for used device. It can only be a disk drive.
If you don't specify the drive, the computer will work with the currently active drive (by default, it's drive A:)
Device type | Device name | Remark |
---|---|---|
Disk drive | A, B, C, D, E, F, G, H | A floppy disk interface can control until 2 drives. |
<Path> is used to specify the location in folders of folder whose attributes need to be changed. The last name (the rightmost one) must be the name of the folder to apply the new attributes. Wildcards can replace some characters in folder name to get several folders. The asterisk (*) and question mark (?) are used as wildcard characters. The asterisk matches any sequence of characters, whereas the question mark matches any single character.
+H is used to mark the selected folders as hidden - these folders will not be affected by most commands or shown by the DIR command unless a /H option is given with those commands.
-H is used to mark the selected folders as not hidden.
/H is used to allow the changing of attributes for hidden folders.
/P is used to allow a pause at the end of the screen when displaying error messages.
MSX-DOS 2 / Nextor allows to change simultaneously the attributes of several (series of) folders with the + part of the mentioned syntax.
Examples
A>ATDIR +H DIR1
A>ATDIR -H B:\DIR1 /H
A>ATDIR +H DIR?
A>ATDIR +H \DIR1 + \DIR2
Related to
CHDIR, DIR, MKDIR, MVDIR, RMDIR, RNDIR
Compatibility
MSX-DOS 2 / Nextor with COMMAND2.COM v2.20 and higher