Pages

Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Massively Delete Folders & Files on Windows 7 Without Prompt

I was having so much troubles to delete a folder that contains huge amount of files. Recently, I started playing with Node.JS and MEAN.js. The mean stack installed lots files (over 120MB, 17000 files) on my computer running Windows 7.

Delete lots file on Windows takes a long time and sometimes break the process and hung my computer. It, by default, removes files and it's subfolder from the folder I want to delete to recycle bin. You then have to right click on the recycle bin to clean the files.

There gotta be a simpler ways to clean files without cleaning the recycle bin.

So here are the ways to make that happen.


Reformat and repartition USB Flash Drive From Windows OS

You can do this in DISKPART in Windows:
  1. Open an command prompt using Administrator rights.
  2. Run DISKPART
  3. list disk
  4. Note the disk number that corresponds to your USB drive (it should be obvious going by size)
  5. select disk X where X is the number from step 4
  6. list partition - There should be two, numbered 0 and 1, each about 7 GB
  7. select partition 0
  8. delete partition
  9. select partition 1
  10. delete partition
  11. create partition primary
  12. exit
  13. exit
  14. In Windows, go to Computer and try to open the disk. It will ask you to format it.
  15. Format it with the default settings and give it a name if you want.
It should now a single, unified partitioned drive.