Automatic delete files
Automatic delete files
(OP)
Hello,
I want a Visual Basic 6.0 program to make the
following handling:
Every week on Sunday morning on 10.00 hour a.m.
the program must delete the files on directory
c:\data.
Who can help me?
Greetings,
mulderm
I want a Visual Basic 6.0 program to make the
following handling:
Every week on Sunday morning on 10.00 hour a.m.
the program must delete the files on directory
c:\data.
Who can help me?
Greetings,
mulderm





RE: Automatic delete files
Put a timer interrupting from minute to minute and checking if it has reached the pretended hour.
Then you just need to delete the file via FileSystemObject.
Don't forget you must keep the program on for it to execute the task.
RE: Automatic delete files
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
RE: Automatic delete files
DEL c:\data\*.*
Simple and no executable programming required.
RE: Automatic delete files
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
UK steam enthusiasts: www.essexsteam.co.uk
RE: Automatic delete files
But I am new for this.
Can you give me the code for this?
Thank you.
mulderm
RE: Automatic delete files
Then go to Control Panel|Scheduled Tasks|Add new and follow the Wizard. You will need to supply a user name and password for the task to run
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
UK steam enthusiasts: www.essexsteam.co.uk
RE: Automatic delete files
If you want to learn how to code it, Google will have the answers for you. :P
RE: Automatic delete files
I have make the task and it works perfect.
mulderm