From 38d904a4087259d1020050358f0210f737a0ff51 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Wed, 24 Aug 2022 05:20:07 +1000 Subject: [PATCH] assoc, attrib: update page (#8349) --- pages/windows/assoc.md | 10 +++++----- pages/windows/attrib.md | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pages/windows/assoc.md b/pages/windows/assoc.md index 6a797fdd30..7415d35419 100644 --- a/pages/windows/assoc.md +++ b/pages/windows/assoc.md @@ -1,16 +1,16 @@ # assoc -> Display or modify file extension associations. +> Display or change associations between file extensions and file types. > More information: . -- Display all associated filetypes: +- List all associations between file extensions and file types: `assoc` -- Display the associated filetype for a specific extension: +- Display the associated file type for a specific extension: `assoc {{.txt}}` -- Modify the associated filetype for a specific extension: +- Set the associated file type for a specific extension: -`assoc {{.txt}}={{txtfile}}` +`assoc .{{txt}}={{txtfile}}` diff --git a/pages/windows/attrib.md b/pages/windows/attrib.md index 9bcc0af873..60bba9e39a 100644 --- a/pages/windows/attrib.md +++ b/pages/windows/attrib.md @@ -1,28 +1,28 @@ # attrib -> Displays or changes file and directory attributes. +> Display or change attributes of files or directories. > More information: . -- Display the attributes of the files in the current directory: +- Display all set attributes of files in the current directory: `attrib` -- Display the attributes of the files in the current directory and sub-directories: +- Display all set attributes of files in a specific directory: -`attrib /S` +`attrib {{path\to\directory}}` -- Display the attributes of the files and directories in the current directory and sub-directories: +- Display all set attributes of files and [d]irectories in the current directory: -`attrib /S /D` +`attrib /d` -- Add the read-only attribute to a file: +- Display all set attributes of files in the current directory and [s]ub-directories: -`attrib +R {{document.txt}}` +`attrib /s` -- Remove the system and hidden attributes of a file: +- Add the `[r]ead-only` or `[a]rchive` or `[s]ystem` or `[h]idden` or `not content [i]ndexed` attribute to files or directories: -`attrib -S -H {{document.txt}}` +`attrib +{{r|a|s|h|i}} {{path\to\file_or_directory1 path\to\file_or_directory2 ...}}` -- Add the hidden attribute to a directory: +- Remove a specific attribute of files or directories: -`attrib +H {{path\to\directory}}` +`attrib -{{r|a|s|h|i}} {{path\to\file_or_directory1 path\to\file_or_directory2 ...}}`