Thread: Floppy Drive

  1. #1
    uh oh
    Join Date
    Jan 2005
    Location
    Ontario, CA
    Posts
    66

    Floppy Drive

    What I'm looking for is a way to direct any actions being done on a Floppy Drive to my program and only allowing the actions I want to allow go through. Just looking for a place(s) to start. Basically I'm wanting a way to stop files from being written to a Floppy Drive.

    Yes I realize that you could simply could use the built-in lock feature on any disks, but someone simply asked me to make a program for her office that would stop her employees from taking any of the office data home.

    Any help would be appreciated.

  2. #2
    customized user title!
    Join Date
    Mar 2005
    Posts
    24
    Could you specify the OS?

    If it's a *nix based OS you could change the permissions on /dev/fd0(*BSD's floppy device) to not allow writing.

  3. #3
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    ...Maybe you should start with something a tad easier? It's never a good idea just to dive into a brand new programming language with no prior programming background, trying to program something practical like that. You're always going to have to start from your "Hello World"s and move up from there.

    At any rate, I'm not much good at something like that...but <cstdlib>'s system() function allows you to use command line commands in your program. Even though it is system specific, the answer might be in using that, as well as knowing your commands.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > make a program for her office that would stop her employees from taking
    > any of the office data home.
    And what about the ways which are far more useful than a floppy (useless capacity)
    Say
    - writable CD drives
    - USB pen drives
    - Flash memory cards
    - FTP to external sites
    - Upload to websites
    - Email
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Quote Originally Posted by Salem
    > make a program for her office that would stop her employees from taking
    > any of the office data home.
    And what about the ways which are far more useful than a floppy (useless capacity)
    Say
    - writable CD drives
    - USB pen drives
    - Flash memory cards
    - FTP to external sites
    - Upload to websites
    - Email
    Exactly. There's no way that a total C++ newbie is going to be able to entirely block the traffic of files from one computer to another.

    If you're new, start with this hun:
    Code:
    #include <iostream>
    
    int main(void){
        std::cout << "I'm new to C++. Give me a smoothie.";
        return 0;
    }

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Krak
    Exactly. There's no way that a total C++ newbie is going to be able to entirely block the traffic of files from one computer to another.
    Especially when this is the C board...

    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    uh oh
    Join Date
    Jan 2005
    Location
    Ontario, CA
    Posts
    66
    Oi! I have written complete programs in the Win32 API. I am not new to C. Most of my programs are win32 based, and I haven't done one in a while that didn't require some sort of internet access to use their true functions. I just simply figured that it would be best to post it on this board rather then posting on the Windows programming board. Although that might be my answer. And yes I realize the other methods, but the employee she is worried about is at a very basic level when it comes to computers so USB, Flash Drives, FTP access nor telnet or any other method of accessing the needed directories to upload to a website. The computers in her office do not have writable cd/dvd-roms, and do not have access to email since I have already blocked access to any of the free based email sites on the web (at least the majority of them, at least all the ones I could find).

    So if you want I can move this question to the Windows programming board. Just let me know. And so yes, this is for Windows. Sorry I didn't mention that in my first post.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Agreed, moved to windows board since whatever the answer will require some win32 API or other.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SATA HDD failure
    By PING in forum Tech Board
    Replies: 4
    Last Post: 12-23-2008, 12:25 AM
  2. Replies: 2
    Last Post: 07-06-2005, 07:11 PM
  3. Spin A Drive and such
    By Seph_31 in forum C Programming
    Replies: 15
    Last Post: 11-20-2003, 06:04 PM
  4. Boot issue; no floppy drive
    By CodeMonkey in forum Tech Board
    Replies: 6
    Last Post: 11-19-2002, 05:37 PM
  5. Replies: 3
    Last Post: 05-25-2002, 06:29 AM