Windows keeps forgetting my sd card should be shared

4

I've got an sd card slot in my Windows 7 laptop. I always use the same sd card in it, and I assigned the drive letter Z to it.

I set it to share, with permissions to Everyone to edit files, which is important to me. That way I can upload files from another computer.

My problem: Windows sometimes forgets that the drive is shared, after the sd card has been out of the computer and back in. It doesn't happen all the time, just sometimes, and then it's annoying because I have to redefine the sharing and permissions.

Any way to make Windows remember my sharing settings? Or alternatively, a scripted way to reenable sharing so I wouldn't have to go through the GUI?

Ram Rachum

Posted 2018-10-14T07:37:27.770

Reputation: 4 261

Are you properly ejecting the SD card through the "safe remove hardware" feature before ejecting it? – LPChip – 2018-10-14T11:34:12.567

I'm way too cool to be doing that. – Ram Rachum – 2018-10-14T15:03:03.733

You're not safely removing the hardware, windows alters the state of the drive, and you're wondering why? tss.. tss.. tss.. – LPChip – 2018-10-14T16:04:52.980

Answers

3

Or alternatively, a scripted way to re-enable sharing?

You can use the following command:

net share sharename z:\

where sharename is the name you want the drive to be known as.

For example:

net share MySDCard z:\

Further Reading

DavidPostill

Posted 2018-10-14T07:37:27.770

Reputation: 118 938