Thread: Dangerous Coding for DOS(batch files)

  1. #31
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    how would you go about doing this? do you mean to send a system() command?
    PHP and XML
    Let's talk about SAX

  2. #32
    Registered User /\/\ E /\/ @'s Avatar
    Join Date
    Jul 2002
    Posts
    10
    yeah...isn't it possible to run different programs using the
    system(); function? so it would keep calling itself until the RAM ran out and the system would hang?

  3. #33
    Registered User
    Join Date
    Jul 2002
    Posts
    24

    I Doubt ?

    But the question again remains that :
    Can the OS honour commands that calls for its own death (format C ?
    If that was possible, then why would people use a floppy to format a Hard Disk, instead of isseuing commands straight from C:

  4. #34
    Registered User Unimatrix139's Avatar
    Join Date
    Jun 2002
    Posts
    55

    Format

    I think DOS can format itself except FORMAT.COM/EXE (and possibly COMMAND.COM depending on the version) but Windows can't format format itself. I dont think it's clever, but it can't remove open files and windows opens a lot of files I could be wrong however...
    Kree'ta Tau'ri! Chaapa'ai!

  5. #35
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Format.com probably loads it's process into memory or something of the like. I've used format.com from DOS quite a few times and from my expierences, format.com will "blank" the hard drive.
    The world is waiting. I must leave you now.

  6. #36
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Well it would be pretty darn clever if it didn't - all processes must be loaded into memory to be exicuted.
    VC++ 6

  7. #37
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > Well it would be pretty darn clever if it didn't - all processes must be loaded into memory to be exicuted.
    Good one.
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 09:52 PM
  2. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 08:36 AM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. Coding C++ to play *.wma files
    By eyemustbecrazy in forum C++ Programming
    Replies: 2
    Last Post: 04-07-2005, 10:26 PM