- 1 year ago
Make file writable in Windows
Comment
1 / 1
To make a file writable in Windows, you can use the following methods:
Method 1: Using the Command Prompt (cmd.exe)
- Open the Command Prompt by pressing
Win + R
, typecmd
, and press Enter. - Navigate to the directory where the file is located using the
cd
command. For example,cd C:\path\to\directory
. - To make the file writable, run the following command:
attrib -R filename.ext
Replace filename.ext
with the name of your file.
Method 2: Using File Explorer (GUI)
- Navigate to the directory where the file is located using File Explorer.
- Right-click on the file and select "Properties."
- In the "General" tab, uncheck the "Read-only" checkbox under the "Attributes" section.
- Click "Apply" and then "OK" to save the changes.
Method 3: Using PowerShell
- Open PowerShell by pressing
Win + X
and selecting "Windows PowerShell" from the menu. - Navigate to the directory where the file is located using the
cd
command. For example,cd C:\path\to\directory
. - To make the file writable, run the following command:
powershellSet-ItemProperty -Path .\filename.ext -Attributes !ReadOnly
Replace filename.ext
with the name of your file.
After using any of these methods, the file should now be writable, and you can make changes to it.