[Q] CreateProcess for Batch files

Mike McCormack mikem at codeweavers.com
Mon Jul 22 15:32:55 CDT 2002


Hi Uwe,

Launching wcmd would probably be the best option. Perhaps have a handler 
in the config file like:

[Executable types]
"bat" = "wcmd %s"

We should probably check that the files aren't executables before 
falling back to this kind of check.

Mike

Uwe Bonnes wrote:
> Hallo,
> 
> the Xilix Webpack Flow in one case tries to create a process with a batch
> file as argument:
> 09846d58:Call kernel32.CreateProcessA(00000000,403efee8 "ChipView.bat -f
> adcswitch.ngd -uc adcswitch.ucf -dev XC2C256-7-TQ144",00000000,00000000,00000001,00000000,00000000,00000000,405e6444,405e6434) ret=40605429
> 09846d58:Ret  kernel32.CreateProcessA() retval=00000000 ret=406054290
> 
> What is a good way to implement batch handling in wine? Start wcmd and hand
> itthe batch file name and arguments? Expand and handle it in
> scheduler/process.c?
> 
> Comments welcome!
> 
> Btw: This Chipview batch file only expands environment variables, sets
> library pathes and calls java. I tried to use the native linux jre, but the
> programm put up a message that it couldn't read some file, which is obvious
> there.
> 
> %XILINX%\java\nt\jre1.2.2\bin\java -mx64m -ss4M -classpath ".;%XILINX%\chipviewer\lib\ChipViewer.jar;%XILINX%\chipviewer\lib\jaxp.jar;%XILINX%\chipviewer\lib\parser.jar;%XILINX%\java\nt\jre1.2.2\lib\rt.jar"com.xilinx.chipviewer.pgms.main.ChipViewer -XILINX %XILINX% %1 %2 %3 %4 %5 %6
> 
> Bye
> 






More information about the wine-devel mailing list