Hehe, a new discovery: There are two files on my desktop, "New Batch.bat" and "New Batch(2).bat". The code of the former is
The code of the latter is
The result of running the former is:

The result of running the latter is:

It's like this: The former can recognize the latter, but the latter can't recognize the former. Interesting, right
@echo off
dir/b|findstr /i /v "%~0"|findstr /n .*
pauseThe code of the latter is
@echo off
dir/b|findstr /i /v "%~n0.bat"|findstr /n .*
pauseThe result of running the former is:

The result of running the latter is:

It's like this: The former can recognize the latter, but the latter can't recognize the former. Interesting, right
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| redtek | +5 | 2007-01-28 23:12 |
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
