Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6062899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:06:15+00:00 2026-05-23T09:06:15+00:00

Someone very helpful over on superuser wrote this script for me, the purpose of

  • 0

Someone very helpful over on superuser wrote this script for me, the purpose of it is to wipe specific sectors on a running windows HDD with zeros. Here’s the code:

http://pastebin.com/LwYFxhFS

I am not sure how to compile that and run it? Would i need to use like visual studio express and compile it then run it from cmd line? Also i am not sure if it will work as windows 7 basically stops any program (like hex editors) from messing with the HDD while it is the one in use.

You can just run it like:

wipe \.\PhysicalDrive0 0 512
where the first argument is the file name, the second is the offset, and the third is the >number of bytes. The number of bytes probably can’t be over ~63 MiB.

Of course i wouldn’t input 0 and 512 as that looks to delete the MBR.

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:06:15+00:00Added an answer on May 23, 2026 at 9:06 am

    Two things.
    1) Never compile code that you can’t read, that code could easily wipe your entire hard drive with zeros (on purpose, or by accident).
    2) Look at Eraser, does the same thing, but has been tested well.

    Though to answer you question, yes visual studio C++ express should compile that.

    Alright, lets break this down. You can compile the program use visual studio. Visual studio is an IDE (development environment) that allows you to write code easily. There are other compilers if you would like to use them instead. The entire idea is to make this code an executable.
    To do this you need to do the following:

    1. Download [Visual C++ 2010 express][1], and install
    2. Start the program, click new project
    3. Click Win32 Console Application
    4. Name it something (like wipe, but it doesn’t matter the name
    5. Click finish
    6. Paste this code (a bit modified for the pre compiled headers, to lazy to tell you to uncheck that box). http://pastebin.com/c3gZ3bct
    7. Click the button F6
    8. This should show that the code was compiled successfully (don’t worry about the warnings)
    9. There should be a tab on the right that says “Solution Explorer”, open that. Right click on the name of the project (in my example it should be wipe), and click “Open Folder in windows explorer”
    10. Go up one folder, then click on Debug.
    11. There will be a file in there with the name of the project, and it is an executable. This is your program.
    12. Open up cmd, navigate to this folder (type ‘cd {folder path}’ to get there), and then use the example the coder gave you to use his code.

    Fell free to ask if part of this doesn’t make sense, give me the step you are on, and why it doesn’t make sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently been working with someone on a project that is very ajax
Someone please correct me if I'm wrong, but parsing a yyyy/MM/dd (or other specific
Someone told me about a C++ style difference in their team. I have my
Someone asked me how familiar I am with VC++ and how familiar I am
Someone told me about swamp diagrams explaning that they were useful to predict code
Someone told me that it's faster to concatenate strings with StringBuilder. I have changed
Someone asked me a question via e-mail about integer partitions the other day (as
Someone left the organisation but before leaving, he locked all the files for an
Someone at work just asked for the reasoning behind having to wrap a wait
Someone posted a great little function here the other day that separated the full

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.