VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

KillFiles

Jack Rizzo  (3 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

I received a request from someone on help with a problem in deleting
temporary files. It seems that they needed to delete all temporary files
except for those with the current date. This subroutine was the result, and I
though it would be good for those of you struggling with how to use the Dir and GetAttr
and SetAttr functions in VB

Inputs
Full path to the target directory including the drive letter and the extension type to be deleted

Returns
Nothing

Side Effects
Create a project with a single form and a command button and paste this code into it.

Rate KillFiles (39(39 Vote))
KillFiles.bas

KillFiles Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters