如果修改链接,则批处理文件以执行操作 [英] Batch files to do an action if link is modified

查看:100
本文介绍了如果修改链接,则批处理文件以执行操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello People我想让批处理文件做一些事情,如果文本文件的编号改变了文本。就像文件cver.txt中的文本文件文本是 1.0 一样,我将其更改为 1.3 如何制作批处理文件注意到并显示文本说

文件cver.txt已更改请转到获取它!





我该怎么做?请帮助!!!

解决方案

一个选项是将当前数字记录在某个数据库中,然后将其与文件版本进行比较。


我不确定,但我想这会帮助你开始。顺便说一下,这是基于power shell脚本而不是批处理文件。这篇文章的新文件,您可以查询修改日期和时间。查看此链接。



powershell-check-folder-for-new-files [ ^ ]

Hello People I wanted to make a batch file do something if the number of a text file has the text changed. Like if a text file text is 1.0 in the file cver.txt and I change it to 1.3 How do I make the batch file notice that and display text saying

the file cver.txt has changed please go and get it!



How do I do this? Please help!!!

解决方案

One option would be to record the current number in a database somewhere, then compare that to the version of the file.


I am not sure but I guess this will help you to get started. By the way this is based on power shell script and not batch file. This post for new files instead you can query for modified date and time. Check this link.

powershell-check-folder-for-new-files[^]


这篇关于如果修改链接,则批处理文件以执行操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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