
wsh 5.6 beta 2 bug - floppy access during exec
No, a "dir c:\" does not access the floppy drive and this has nothing to do
with Java. Actually this is just a simple test to demonstrate the problem.
Any use of the "Exec" command that includes a "%comspec%" accesses the
floppy drive under '98.
Quote:
> What if you do a dir command at the command prompt?
> Does it also try to access the a: drive? If it does then the dir command
is
> doing it, not java.
> > Here's a curious bug. The following JScript script attempts to access
the
> > floppy drive under Win '98:
> > var WshShell = new ActiveXObject("WScript.Shell");
> > var shellJob = WshShell.Exec("%comspec% /c dir c:\\");
> > WScript.Echo(shellJob.StdOut.ReadAll());
> > This is a simplified test - actually any use of WshShell.Exec will
attempt
> > to access the floppy. This does not happen under Win2k.
> > ---------------