Originally posted by PDL If your card reader does not support the lock on the SD card, then you should buy a better reader
In Windows you can set any disk to readonly with DISKPART
Open a command window.
Type:
DISKPART
At the DISKPART> prompt type:
LIST DISK
Provided no card is in the reader one of the listed disk should say "No Media"
Select that disk with the command:
SEL DISK <number of disk>
Then type:
ATTRIBUTE DISK SET READONLY
the command to re-enable read/write is:
ATTRIBUTE DISK CLEAR READONLY
The card reader should now be readonly. Insert your card. When done open File Explorer and right click on the drive that is the card-card reader and pick eject. This ejects (detaches) the card.
If you uses the "Safely Remove Hardware and Eject Media" icon from the taskbar, it ejects (detaches) the card reader and you won't be able to re-enable read-write. Be sure to eject and remove the card before turning off readonly.
*Note: commands are shown in caps for clarity. Diskpart is case in-sensitive so it doesn't matter if all caps, all lower case or mixed.