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.

Delte all %WinDir%\*.bmp BUT ONE.

Featured Replies

Yeah, that's just the one line version of the code... however, it won't work if you need to protect two files (boot.bmp & boot1.bmp) ;)

  • Author

Aha, that's why theres two names :D

Thank you, it's just what I need...!

@Boardbabe & Gosherm,

Nice effort from both of you. however, i still have problems. here's my code:

=================================================

Attrib -R -H -S %WinDir%\*.bmp

for /F "usebackq tokens=*" %%i in (`dir /b %WinDir%\*.bmp`) do (

if %%i neq "Prairie Wind.bmp" (

if %%i neq "Soap Bubbles.bmp" (

if %%i neq winnt.bmp (

if %%i neq winnt256.bmp (

del /q "%WinDir%\%%i"

)

)

)

)

)

=================================================

Result is that, except winnt.bmp and winnt256.bmp, all .bmp(s) are deleted. why it's not saving the other 2 files? what's wrong with my code?

Edited by MOONLIGHT SONATA

@ MOONLIGHT SONATA

These three lines should do what you want

@ECHO OFF&PUSHD %SYSTEMROOT%
FOR /F "DELIMS=" %%? IN ('DIR/B/A-D "*.BMP" ^2^>NUL^|FINDSTR/LIVE "PRAIRIE\ WIND.BMP SOAP\ BUBBLES.BMP WINNT.BMP WINNT256.BMP"') DO IF ERRORLEVEL 0 DEL /F/A/Q "%%?"
POPD&GOTO :EOF

just remove the @ECHO OFF& and &GOTO :EOF to add to an existing batch file.

<Edit>

For those of you wishing to alter the code to suit your own preferences, the backslashes in the above code act as escape characters for the spaces in the file names

</Edit>

Edited by Yzöwl

Added to my growing collection of Yzöwl awesome script to do whatever you want with a nice small piece of code. :thumbup

@ Bilou Gatex,

I endorse your comment on behalf of all the members of MSFN, barring Yzowl (=our "Man Friday"). :thumbup

@ Yzowl,

Uff, awesome...what can i say more, i don't know. Nice, & thank you. :P

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.