Thread: Directories

  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,829
    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,981

  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, 11:30 PM
  2. VC6 directories
    By Magos in forum Tech Board
    Replies: 0
    Last Post: 03-11-2005, 05:52 PM
  3. problem while opening files from multiple directories
    By V.G in forum Windows Programming
    Replies: 2
    Last Post: 11-08-2004, 03: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