Re dosforever:
Because of personal reasons I didn't reply to your post in time, and I feel deeply sorry! I agree with everything you said above; in fact there is no contradiction between what you said and what I said. It's just that in my previous reply I didn't express too many opinions on tool usage, but seeing how enthusiastic you and the others were, I took some time out of my busy schedule to add a few more words here, for further discussion:
First, “third party” really is only a concept, a concept created and maintained by the “first-party” software producer. For us users as the “second party,” under normal circumstances it is an insignificant concept. But in certain special circumstances, this concept can be transformed into real influence. For example, Microsoft created MSDOS and became the unquestioned “first party” of this system, while Symantec, JPSoftware and the like have intentionally or unintentionally, half-pushed and half-willingly, become the “third party” of this system. And we as the “second party” can often give up any “third party” at any time, because we can often find better substitutes, but for the “first party” we have already developed an indisputable dependence, because it is very hard for us to find an equivalent replacement.
Second, anyone can use any third-party product, but the premise is that he can obtain that product. You assume by default that 4DOS is a treasure that any DOS fan can easily get, so you have spared no effort in promoting it. But at present, compared with the software products we commonly use (such as DOS and Windows), the ways to obtain it are still much narrower. Quite a lot of DOS users cannot access the Internet or even pirated CDs (perhaps you find that unbelievable; I once studied 4DOS too, but only in books and magazines, because at the time I could not get the software, so in the end I gave up continuing deeper). For them, using first-party products to meet their needs has considerable necessity and inevitability. Also, in machine environments such as boot disks and diskless workstations, first-party products are sometimes an unavoidable choice.
Third, using external commands and even third-party tools in batch files is completely acceptable, but at the same time you need to ensure that it can receive sufficient support in any environment where it may run. To satisfy such support, one way is to package all supporting programs together with your batch file when publishing it; another is to encode external programs into the batch file itself in a MIME-like way. But these methods all make the program too large and cause it to lose the advantages of a batch file. So we can only restrict the runtime environment of the batch file, and sometimes this kind of restriction is fatal.
Fourth, reducing I/O really is necessary, but if it cannot be avoided and will not clearly affect the running of the program, then using it appropriately can also achieve a miraculous effect. In the batch files I write now, I almost can no longer avoid using it; it has already become an exceptionally important part of my batch programming syntax.
Fifth, the usage of %temp%.\ is not a syntax error, but a syntax trick. It is used to be compatible with references to paths with a trailing backslash (such as C:\) and paths without a trailing backslash (such as C:\temp). If %temp% is a root path like C:\, then %temp%.\filename.ext becomes C:\.\filename.ext. Since the current path under the root path is still the root path, it does not affect file referencing, but it prevents the path syntax error of a double “\”. And if %temp% is a directory path like C:\temp, then %temp%.\filename.ext becomes C:\temp.\filename.ext. Since Temp. (a directory name without an extension) is still temp, the file reference is still valid, and it also prevents the path syntax error of not having a “\”.
Finally, let me conclude with your signature to express our common wish!
——“DOS has fallen, but it will never die”
[ Last edited by willsort on 2005-10-30 at 13:58 ]
Because of personal reasons I didn't reply to your post in time, and I feel deeply sorry! I agree with everything you said above; in fact there is no contradiction between what you said and what I said. It's just that in my previous reply I didn't express too many opinions on tool usage, but seeing how enthusiastic you and the others were, I took some time out of my busy schedule to add a few more words here, for further discussion:
First, “third party” really is only a concept, a concept created and maintained by the “first-party” software producer. For us users as the “second party,” under normal circumstances it is an insignificant concept. But in certain special circumstances, this concept can be transformed into real influence. For example, Microsoft created MSDOS and became the unquestioned “first party” of this system, while Symantec, JPSoftware and the like have intentionally or unintentionally, half-pushed and half-willingly, become the “third party” of this system. And we as the “second party” can often give up any “third party” at any time, because we can often find better substitutes, but for the “first party” we have already developed an indisputable dependence, because it is very hard for us to find an equivalent replacement.
Second, anyone can use any third-party product, but the premise is that he can obtain that product. You assume by default that 4DOS is a treasure that any DOS fan can easily get, so you have spared no effort in promoting it. But at present, compared with the software products we commonly use (such as DOS and Windows), the ways to obtain it are still much narrower. Quite a lot of DOS users cannot access the Internet or even pirated CDs (perhaps you find that unbelievable; I once studied 4DOS too, but only in books and magazines, because at the time I could not get the software, so in the end I gave up continuing deeper). For them, using first-party products to meet their needs has considerable necessity and inevitability. Also, in machine environments such as boot disks and diskless workstations, first-party products are sometimes an unavoidable choice.
Third, using external commands and even third-party tools in batch files is completely acceptable, but at the same time you need to ensure that it can receive sufficient support in any environment where it may run. To satisfy such support, one way is to package all supporting programs together with your batch file when publishing it; another is to encode external programs into the batch file itself in a MIME-like way. But these methods all make the program too large and cause it to lose the advantages of a batch file. So we can only restrict the runtime environment of the batch file, and sometimes this kind of restriction is fatal.
Fourth, reducing I/O really is necessary, but if it cannot be avoided and will not clearly affect the running of the program, then using it appropriately can also achieve a miraculous effect. In the batch files I write now, I almost can no longer avoid using it; it has already become an exceptionally important part of my batch programming syntax.
Fifth, the usage of %temp%.\ is not a syntax error, but a syntax trick. It is used to be compatible with references to paths with a trailing backslash (such as C:\) and paths without a trailing backslash (such as C:\temp). If %temp% is a root path like C:\, then %temp%.\filename.ext becomes C:\.\filename.ext. Since the current path under the root path is still the root path, it does not affect file referencing, but it prevents the path syntax error of a double “\”. And if %temp% is a directory path like C:\temp, then %temp%.\filename.ext becomes C:\temp.\filename.ext. Since Temp. (a directory name without an extension) is still temp, the file reference is still valid, and it also prevents the path syntax error of not having a “\”.
Finally, let me conclude with your signature to express our common wish!
——“DOS has fallen, but it will never die”
[ Last edited by willsort on 2005-10-30 at 13:58 ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| Jneny | +8 | 2009-03-19 23:40 |
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!

