On Sat, Aug 30, 2008 at 7:59 PM, rconn <> wrote:
> Here, it only fails if X: doesn't exist (or isn't ready). It behaves
> identically to CMD in every test I've tried -- can you give me an explicit
> example where it fails in TCC but works in CMD?
My C: is a physical drive. D: is SUBST C:\RAM, E: is a CDROM, G: is
mapped to a Windows server. F: does not exist.
TCC fails in every case if the drive actually exists. TCC correctly
says F: does not exist. CMD gives the proper answer in all cases.
D:\>ver /r
TCC 9.02.151 Windows XP [Version 5.1.2600]
TCC Build 151 Windows XP Build 2600 Service Pack 3
D:\>type test.bat
if exist %1:\nul echo exist %1
D:\>echo %_drives
C: D: E: G: I: J: L: M: N: O: P: Q: R: S: T: U: W: Y: Z:
D:\>test c
if exist %1:\nul echo exist %1
D:\>test d
if exist %1:\nul echo exist %1
D:\>test e
if exist %1:\nul echo exist %1
D:\>test f
if exist %1:\nul echo exist %1
D:\>test g
if exist %1:\nul echo exist %1
D:\>ver
Microsoft Windows XP [Version 5.1.2600]
D:\>test c
D:\>if exist c:\nul echo exist c
exist c
D:\>test d
D:\>if exist d:\nul echo exist d
exist d
D:\>test e
D:\>if exist e:\nul echo exist e
D:\>test f
D:\>if exist f:\nul echo exist f
D:\>test g
D:\>if exist g:\nul echo exist g
exist g
D:\>
--
2008 Fridays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Saturday.
Measure wealth by the things you have for which you would not take money.