wsh 5.6 beta 2 bug - floppy access during exec 
Author Message
 wsh 5.6 beta 2 bug - floppy access during exec

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.

---------------



Sun, 02 Nov 2003 02:46:57 GMT  
 wsh 5.6 beta 2 bug - floppy access during exec
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.


Quote:
> 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.

> ---------------



Mon, 03 Nov 2003 12:38:43 GMT  
 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.

> > ---------------



Mon, 03 Nov 2003 20:15:43 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. WSH 5.6 Beta - Shell.Exec

2. WSH 5.6 Beta 1, new method, WScript.Exec

3. WSH 5.6 beta - Shell.Exec

4. WSH bug status (pre-WSH 5.6 beta)

5. WSH 5.6 WshShell.Exec - Minimized Window?

6. WSH 5.6 b 1 Remote Exec

7. BUG in WSH 5.6 install if Wscript.exe is running while updating WSH

8. BUG in WSH 5.6 install if Wscript.exe is running while updating WSH

9. BUG in WSH 5.6 install if Wscript.exe is running while updating WSH

10. WSH 5.6 beta 2

11. WSH 5.6 Beta for NT missing files?

12. WSH 5.6 beta 2

 

 
Powered by phpBB® Forum Software