Delete all tmp files..

Hi,

Does anyone know how i can delete all *.tmp files
from my application path.

i can use

kill app.path + "*.tmp"

which works the first time i run it, but i need to somehow check if any files with a .tmp extension exist, b4 i delete them, otherwise i get the file not found error.

any help would be appreciated

Thanks,

Maria

Comments

  • : Hi,
    :
    : Does anyone know how i can delete all *.tmp files
    : from my application path.
    :
    : i can use
    :
    : kill app.path + "*.tmp"
    :
    : which works the first time i run it, but i need to somehow check if any files with a .tmp extension exist, b4 i delete them, otherwise i get the file not found error.
    :
    : any help would be appreciated
    :
    : Thanks,
    :
    : Maria
    :
    :

    Dir$ can be used to check for files:
    [code]
    If Dir$("*.tmp") <> "" Then Kill App.Path & "*.tmp"
    [/code]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion