CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2000
    Posts
    24

    Deletion of file from folder permanantly

    hi,

    I want to delete a file from a folder using an api, i already used an api called delete file which is deleting the file , but sometimes it is not actually deleting the file(means if i use dir function it is finding the file), i can see the same file after calling the above api in windows explorer, but if i refresh the windows explorer it is removing from the explorer,
    I want to remove the file from the specified folder permenantly programmatically, can u pl.find out the way to delete it or refreshing the windows explorer contents programmatically.

    thanx


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Deletion of file from folder permanantly

    Ever though of the Kill statement. This deletes the file, and if you do dir, the file is gone.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Deletion of file from folder permanantly

    >i can see the same file after calling the above api in windows explorer, but if i refresh the windows explorer it is removing from the explorer
    this means file is gone, it is only a matter of refreshing explorer...

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured