auto delete the files at specefic date and time.
-
i want to make an .exe which resides in any system's folder and on a specefic date and time it get active and delete all files in that specefic folder.
Wow!!! Sounds like a typical virus attack.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Wow!!! Sounds like a typical virus attack.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
i want to make an .exe which resides in any system's folder and on a specefic date and time it get active and delete all files in that specefic folder.
rather you can do like this. 1.write an exe, that reads the foldername and the date/time on which it has to be deleted, from a text file. 2.on execution, the exe reads a text file, that contains a lookup of the folder names and dates. 3.if the current time is beyond the time specified in the file, then delete the files from that folder. 4.now you can place this exe(shortcut) in the startup. 5.also you can write your exe in such a way that, it loops the above code once in an hour.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
i want to make an .exe which resides in any system's folder and on a specefic date and time it get active and delete all files in that specefic folder.
This is not a particulary difficult task to do. just create a service and set it with a periodic "heart-beat" to check the date, and when the date is right, delete the files in the folder.
Watched code never compiles.
-
i want to make an .exe which resides in any system's folder and on a specefic date and time it get active and delete all files in that specefic folder.
You could do the same thing with a batch file and a scheduled task.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
can u help me in tht...actualy its not particularly a virus....i want it to be useful for me to manage my data in my work...i want to discard the files after a certain time when here are no more needed. i want it in .exe form or any other.
As David said, I would recommend a scheduled task. Take a look at the ITaskScheduler[^] interface for starters.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)