Originally posted by namejm at 2006-9-30 07:46 PM:
可以采用删除整个目录然后再重建这个目录的方法:
@echo off
rd /q /s "C:\Documents and Settings\Administrator\Templates"
md C:\Documents and Settings\ ...
我利用那段脚本加上自己写的一些争对公司网络情况写的一些脚本做出了一个支持域计算机的。并且即使别人改了保存路径也不会出错的脚本
现在公司内部版本号是: Vision :1.01.13E版
而最开始的版本号是用 v0.01开始的。
到后来经过7次代码重写(每一次的重写都是自己的批处理功力的一次提升),因为用户总会给你一些莫明奇妙的问题。而我必须考虑这些问题。反而忽略了代码的简洁。。。
如此。7个月的时间更新了150多次。现在基本什么电脑使用都不会出现问题了。而出现的问题都有提示。。只是最近。该段代码可能又会升级一次。
在这里我又学到了简洁。。(在不影响安全的情况下。我会把所有代码再次全部重写的)
Originally posted by namejm at 2006-9-30 07:46 PM:
You can use the method of deleting the entire directory and then recreating this directory:
@echo off
rd /q /s "C:\Documents and Settings\Administrator\Templates"
md C:\Documents and Settings\ ...
I used that script along with some scripts I wrote specifically for the company's network situation to make a script that supports domain computers. And even if someone changes the save path, it won't go wrong.
Now the internal version number of the company is: Vision :1.01.13E version
And the initial version number started with v0.01.
Then after 7 code rewrites (each rewrite is an improvement of my batch processing skills), because users will always give you some strange problems. And I have to consider these problems. Instead, I ignored the simplicity of the code...
In this way, it has been updated more than 150 times in 7 months. Now basically no problems occur when using any computer. And there are prompts for the problems that occur. Just recently, this code may be upgraded again.
Here I learned simplicity again. (I will rewrite all the code again in full when it doesn't affect security)