Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Delete Files N Number Of Days Old
Author:
Vivek Nigam
E-mail:
Click to e-mail author
Submitted:
2/16/2004
Version:
VB3
Compatibility:
VB3, VB4, VB5, VB6
Category:
File Manipulation
Downloads:
6812
This function will allow you to delete all type of files N number of days old from today's date or the data supplied by the user. It will also set the file Attributes before deletion, if file having Read Only Attributes, application will set normal Attributes before deletion. This application will also store the result in ArielTempFileResult.log file, you can see this log file in your application path, It will also create error log file if any error occur when user run the application file name DelArielTmpErrFile.log, this file will also created in the same location(Application Path) . The best way to run this application is to create the Exe and pass the specified parameters. DeleteArielTempFiles.exe lngDaysOld, strFileSpec, strComparisonDate e.g DeleteArielTempFiles.exe 2, strFileSpec, strComparisonDate lngDaysOld = Number of Days you want to delete files. strFileSpec = "C:\Temp\ForDelFileTestProgram\*.tmp" strComparisonDate = By default is Now - You can pass any days. Note: Before use this application you have to be very clear what this code and application is going to do, Owner of this code is not at all responsible for any damage and any kind of file deletion by user.
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement