Search found 4 matches

by GInfo
30 Sep 2021 15:37
Forum: DOS Batch Forum
Topic: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk
Replies: 15
Views: 15969

Re: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk

Hi again, well, as I still haven't got an alternative, <Snip> </Snip> I'm still looking for an alternative to Diskpart... I thought that my previous reply may have been an alternative? Granted it is untested, and is only available in Windows 8/Server 2012 onwards Here's a quick untested idea: @Set ...
by GInfo
29 Sep 2021 22:57
Forum: DOS Batch Forum
Topic: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk
Replies: 15
Views: 15969

Re: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk

Hi Folks, I'm trying a script to get the readonly status set by the Diskpart / attr disk set readonly command, but to the disk drive where the script is running, like a flash drive. (current disk) the result (Readonly: Yes / No) will be used to alert the user that the disk is unprotected for writin...
by GInfo
29 Sep 2021 22:25
Forum: DOS Batch Forum
Topic: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk
Replies: 15
Views: 15969

Re: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk

It can be a bit of a pain to script for diskpart as it requires an external file. I would suggest fsutil. You need to run it as Administrator, but you can capture Read/Write or Read Only information for a drive. For example: fsutil fsinfo volumeinfo C: https://docs.microsoft.com/en-us/windows-serve...
by GInfo
28 Sep 2021 17:38
Forum: DOS Batch Forum
Topic: How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk
Replies: 15
Views: 15969

How to get READONLY Status for Current disk drive (usb) - like diskpart/attr disk

Hi Folks, I'm trying a script to get the readonly status set by the Diskpart / attr disk set readonly command, but to the disk drive where the script is running, like a flash drive. (current disk) the result (Readonly: Yes / No) will be used to alert the user that the disk is unprotected for writing...