Directories

This is a discussion on Directories within the Windows Programming forums, part of the Platform Specific Boards category; Hi all. I've been searching on Yahoo & MSDN for a while on how to delete a directory if it's ...

  1. #1
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

    Directories

    Hi all.

    I've been searching on Yahoo & MSDN for a while on how to delete a directory if it's found. Does anyone have any ideas on how to?

    ShellExecute doesn't work for what I want incase someone mentions it....shell doesn't allow you to delete a directory, just open, explore, etc...

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Use the RemoveDirectory() API routine.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Originally posted by adrianxw
    Use the RemoveDirectory() API routine.
    Thank you. The obvious isn't so obvious to me I guess...:\

  4. #4
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    New question.....

    Does anyone know how to find a file in Win32? Or how to know if a file has been modified since last checked using Win32?

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,671

  6. #6
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Originally posted by Codeplug
    http://faq.cprogramming.com/cgi-bin/...&id=1044780608

    Look at the Win32 example.

    gg
    Thank you. That helped a lot.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Comparing 2 directories
    By Opel_Corsa in forum C++ Programming
    Replies: 4
    Last Post: 01-19-2007, 10:30 PM
  2. VC6 directories
    By Magos in forum Tech Board
    Replies: 0
    Last Post: 03-11-2005, 04:52 PM
  3. problem while opening files from multiple directories
    By V.G in forum Windows Programming
    Replies: 2
    Last Post: 11-08-2004, 02:29 PM
  4. mkdir and multiple directories
    By Idle in forum C Programming
    Replies: 4
    Last Post: 06-28-2003, 04:56 AM
  5. Working with directories...
    By C Seņor in forum C Programming
    Replies: 4
    Last Post: 04-20-2002, 11:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21