Thread: Spin A Drive and such

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Seph_31's Avatar
    Join Date
    Nov 2003
    Posts
    24

    Spin A Drive and such

    Hello I am a beginner at C and was wondering if anyone could help me out. I am trying to make a prank program that pretends to delete your whole computer. I wanted to know how to spin the A drive to make it seem like it is searching files ect. Also if anyone knows how to make it go fullscreen like pressing ALT + ENTER in DOS that would be helpful. The code here has a few errors so feel free to touch it up. Thanks for your help.

    Code:
    #include <stdio.h>
    #include <conio.h>
    char * Drive[32];
    int bleh = 0;
    int main()
    {
    int count = 0;
    printf("Hack-me-please by Some one \n");
    printf("When there is a pause just press SPACE\n");
    getch();
    printf("Searching for main drive...\n");
    getch();
    printf("Main drive not found.\n Please input main drive: ");
    scanf("%s", &Drive);
    if (*Drive == "bleh")
    {
    die();
    }
    printf("\n Deleting drive...\n");
    getch();
    printf("Drive %s not found. Searching for drive...\n", Drive);
    
    printf("Drive found as C: \n");
    printf("Deleting contents... \n");
    getch();
    printf("Drive deleted. Have a nice day!\n");
    getch();
    while(count < 100)
    {
    printf('%s', Drive);
    }
    return(0);
    }
    int die()
    {
    while(bleh == 0)
    {
    printf("Error\n No Operating System detected!\n");
    getch();
    }
    }
    Last edited by Seph_31; 11-16-2003 at 07:47 PM.
    --Seph

Popular pages Recent additions subscribe to a feed