problems with exec("rundll32.exe shell32.dll...")

Øyvind Harboe oyvind.harboe@zylin.com
Tue May 20 14:21:00 GMT 2003


>I do not know why this behaviour changes for these
>programs - a simple test program in C that I wrote
>that merely prints out argv[] never manages to
>see the difference between quoted and unquoted
>command lines. :-(

AFAIK, the parsing of the command line is entirely in the hands
of each application under Win32.

The only thing that is done by Windows is to parse enough to figure
out which executable to launch.

I see that libgcj's Runtime.exec() variants are redirected to 
a single Runtime.exec() implementation within the Java implementation.

Perhaps Runtime.exec(String cmd) should be treated 
via a different codepath.

Simply pass the cmd directly through to Win32 CreateProcess?


Yuk. 

Øyvind




More information about the Java mailing list