更改系统日期后自动创建txt文件 [英] create txt file automatically when system date is changed

查看:102
本文介绍了更改系统日期后自动创建txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在系统日期更改时自动创建txtFile ...


并且文件名与创建之日相同

时间的坦克

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

推荐答案

创建一个bat文件以创建txt文件,并将该bat文件分配给调度程序.

创建蝙蝠文件
http://www.computing.net/howtos/show/creation-text-files-using-batch-script/586.html [ http://helpdeskgeek.com/how-to/schedule-a -batch-file-to-run-in-xp/ [
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/[^]


是的,可以使用C#.
按照我的想法,您必须创建一个小型应用程序,该应用程序在系统中运行24X7,并不断检查系统日期.如果日期更改,它将在您希望的位置创建一个空白文本文件,并带有您的期望文件名.
注意:使用计时器控件检查日期更改.
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.


这篇关于更改系统日期后自动创建txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆