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.

[CMD] Deleting Items

Featured Replies

I am trying to delete individual folders using a .cmd file I am currently working on. My problem is that I cant delete entire folders. when I use the following code to delete a folder it only deltes the contians found within:

DEL C:\WINDOWS\AppPatch

ECHO.

EXIT

1. How can I delete entire folders and there contents?

2. How can I delete certian extentions found in a folder or a drive .bmp and so on?

This kills ur selected file extension, in this case bmp's in the folder(s)

DEL C:\folder\*.bmp
ECHO.
EXIT

This kills everything in the folder(s)

DEL C:\folder\*.*
ECHO.
EXIT

and i feeling codie, heres one for visual basic as well :rolleyes:

This kills everything in the folder(s)

Kill "c:\folder\*.*"

This kills ur selected file extension, in this case bmp's in the folder(s)

Kill "c:\folder\*.bmp"

hope i could help you my friend :)

to delete a directory, first you need to delete the contents:

DEL C:\Deleteme\*.*

Then, use the Remove Directory command

RD C:\Deleteme

  • Author

thx everyone for your help. I am however still having some trouble my code now looks like this:

ECHO

RD /S /Q C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Accessibility

ECHO.

EXIT

Whats wrong with my code it doesnt seem to want to run the cmd box closes before I can see an error. I could also use some links to any pdf's that I might use to learn more about this subject.

If you have spaces in the path, you have to surround it with quotes:

ECHO
RD /S /Q "C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Accessibility"
ECHO.
EXIT

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.