Code: Select all
fsutil 8dot3name query | for /F %%a in ('findstr /v /i "Enable "') do (echo DANGER FIX REGISTRY & pause)
Here's a simpler illustration that will work for all (because your installation may or may not "fail" the FINDSTR above):
Code: Select all
echo bad | for /F %%a in ('findstr /v /i "good"') do (echo Is not good & pause)
(FYI this is so that at boot I automatically check registry value NtfsDisable8dot3NameCreation, since some jerk update changed that without informing me or asking first. In case anyone's interested, it happened while running updates (on Win 7) suggested by the Dell "SupportAssist" utility, which wanted to update System Bios, and Intel Rapid Storage Technology Driver and Management, and two other Intel updates. However the very first thing it did was automatically do every urgent and nonurgent Windows Update, so it could have been that too. Whoever did it, that was pretty G.D. rude to do it at all, and not even at very least having the courtesy to give me a msgbox telling me.)