Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Deleting files from floppy

Deleting files from floppy

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sameer Maggon
    wrote on last edited by
    #1

    Hi, What is the best method for deleting all files and folders from a floppy (programatically) Sameer

    N M 2 Replies Last reply
    0
    • S Sameer Maggon

      Hi, What is the best method for deleting all files and folders from a floppy (programatically) Sameer

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      You can use SHFileOperation. Use FO_DELETE and make pFrom "A:\*.*" That should delete the files in the root directory as well as recursively delete all directories and sub-directories. Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

      1 Reply Last reply
      0
      • S Sameer Maggon

        Hi, What is the best method for deleting all files and folders from a floppy (programatically) Sameer

        M Offline
        M Offline
        Mike Nordell
        wrote on last edited by
        #3

        That depends on your view of "best", but I think the following might work: system("del /q/s a:\\*"); Maybe you need to expand the environment variable ComSpec (case is unimportant) and prepend it to the command.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups