Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

$OEM$ read only fix!

Featured Replies

Hi everybody!

I came up with the following script to fix the $OEM$ folders read only flaw. It marks all read only files not read only recursively.

dir %1 /AR /B /S >%2
FOR /F "tokens=* " %%I IN (%2) DO attrib -R "%%I" /S /D
del %2

Also added it for your downloading pleasure... :)

Usage:

readonly[.cmd] "c:\path\to\dir" c:\mytempfile.txt

Note: this also supports environment variables.

Have fun! :) And please feel free to post modifications here.

ProClub

readonly.cmd

How about a single line

FOR /F "DELIMS=*" %%? IN ('DIR/B/S/AR "%~1"^2^>NUL') DO IF ERRORLEVEL 0 ATTRIB -R "%%?" /S /D

Usage:

readonly[.cmd] "x:\path to\dir"

quotes only if spaces in path or file name

Just a quick question....why would I want to do this? And if necessary, where and when would I run this command?

  • Author

As far as that's concerned, we might have a littttle problem. RunOnceEx seems to run under some weird no-user-right so the attrib command has no effect. Trying out cmdlines.txt right now.

Edited by ProClub

  • Author

Yep, cmdlines.txt as well. This really sucks.

Why would I do this? Because I like to copy a Firefox and Thunderbird defaul profile via $oem$ to the Default User profile so that that profile is applied to every user. Now, since Windows keeps keeping those flags, Firefox gets reeeally cranky and buggy. So, guess what, reset the read only flag.

However, if I can't do it anyhow from setup, I'd have to do it manually at which point I'm as good as installing Windows myself.

  • Author

Sode debuging added up the following:

- Seems I was wrong, you do have the rights to modify the read only flag at install time, hovever

- there was a problem with my script calling readonly.cmd. I'm right now doing a test with it. If my script is ready, I'll post it here.

I put the following in my Cleanup.cmd file to change the attributes...

REM :: Fix $OEM$\$Progs Entries ::
ATTRIB -R "%ProgramFiles%\Rainlendar\*.*" /S /D
ATTRIB -R "%ProgramFiles%\Winamp\Skins\AR7\*.*" /S /D
ATTRIB -R "%ProgramFiles%\WallpaperToy\*.*" /S /D
ATTRIB -R "%ProgramFiles%\WinZip\*.*" /S /D
ATTRIB -R "%ProgramFiles%\WinRAR\*.*" /S /D

For the programs I have listed (Rainlendar, Winamp Skin, Winzip, WinRAR, etc), I need to get rid of the Read Only attribute in order to be able to change any settings.

For example, in Rainlendar, you can't change the skin or it's position on the desktop without getting rid of the Read Only Attribute. When you reboot, it will go back to the original skin, and original location on the desktop.

Edited by Powerhouse

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.