Announcement

Collapse
No announcement yet.

Delete or Format Script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delete or Format Script

    Hi,

    I have a USB drive with a folder on called backup that i want to delete using a batch file. The drive is the letter K:\ but i dont seem to get something that will either format the drive or delete the folder and its contents.

    Any help would be greatly appreciated.

    Thanks

  • #2
    Re: Delete or Format Script

    Hello try this

    >rmdir k:\backup /s /q
    Please remember to award reputation points if you have received good advice.
    I do tend to think 'outside the box' so others may not always share the same views.

    MCITP -W7,
    MCSA+Messaging, CCENT, ICND2 slowly getting around to.

    Comment


    • #3
      Re: Delete or Format Script

      I'm sorry, but I find your problem description a bit confusing. What exactly is the problem you got? Do you want to delete some files, format the stick or perform a conditional delete-or-format procedure? Have you already got a script that does not work? If you do, please post it and let's have a look on it.

      -vP

      Comment

      Working...
      X