Thread: memory

  1. #1
    Unregistered
    Guest

    memory

    how can i close automaticaly (alt+f4) a dos -programme when it finishes?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    32

    Closing a DOS prog

    Dear Guest

    Please say more about the DOS programme/s you have in mind.

    Are they batch files you have writtenyourself or applications you have installed ?

    Also, what environemnt ar eyou running them in ?

    Thanks

    Stephanos

  3. #3
    Unregistered
    Guest
    os windows. a dos programme written in c with special code inside so when it finishes to free the memory it have occupied without the user to push alt-f4 in order to close it.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    > a dos programme written in c with special code inside so when
    > it finishes to free the memory it have occupied without the user
    > to push alt-f4 in order to close it.

    Um, I hate to break it to you, but your programs usually free their memory when they close without you having to do anything. Or at least they're supposed to.

    Anyway, if it's in windows, just create a pif for it that closes it.

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

  5. #5
    Unregistered
    Guest
    no if the programme exits with exit(o) the dos-window remains on the screen and you have to push alt-f4.

  6. #6
    Registered User Dave Jay's Avatar
    Join Date
    Mar 2002
    Posts
    33

    What am I missing?

    In a windows environment:

    Open the program icon's properties, click the program tab, check the "close on exit" box. You must do this individually if using a shortcut.

  7. #7
    Unregistered
    Guest

    right

    you are right. i hadn't noticed. i thought that was happening with c code included in the programme. thank's.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 01-13-2008, 02:14 AM
  2. Question regarding Memory Leak
    By clegs in forum C++ Programming
    Replies: 29
    Last Post: 12-07-2007, 01:57 AM
  3. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  4. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 02:15 AM
  5. What's the best memory (RAM) type?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 12-15-2001, 12:37 AM