Click here to Skip to main content
15,906,569 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to be create txtFile automatically when the system DATE is change ...


and the files name be on the same day date that it was created

tanks for time
Posted
Comments
MT_ 7-Nov-12 8:14am    
If I may ask the purpose? Is it for logging ?
sahrarainmelody 8-Nov-12 3:13am    
yes exactlly...

create a bat file to make txt file and assign that bat file to scheduler.

create bat file
http://www.computing.net/howtos/show/creating-text-files-using-batch-script/586.html[^]

assign bat file in scheduler
http://helpdeskgeek.com/how-to/schedule-a-batch-file-to-run-in-xp/[^]
 
Share this answer
 
Comments
sahrarainmelody 8-Nov-12 3:50am    
i should do this in c# and for win7... can explain more . thank u friend really
Yes it is possible with C#.
As per my idea You have to create one small application which runs 24X7 in your system and It keeps on checking your system date. If the date gets change than it will create an blank text file in your desire location with your desire file name.
Note: Use timer control for checking date change.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900