[cw-discuss] Running an uninstalled app from command line

Francois Gouget fgouget at codeweavers.com
Thu Nov 9 12:43:43 CST 2006


Hi Frank,

Frank S. Bernhardt wrote:
> Under 4.2 of CX Pro I could run a shell script:
> 
> #! /bin/sh
> 
> cd "/home/frank/mnt/THEODIN/pbs113"
> "/opt/cxoffice/bin/wine" --workdir "." "./pbs.bat"
> 
> And it ran just beautifully.
> 
> Since I've upgraded to CX 5.3 Pro this no longer works. Scanning all the
> docs and the list  and trying everything suggested I'm getting the
> impression that the only way for this to work is to first install the
> app into a bottle.

This is not related to bottles. It's a regression in wcmd.exe, Wine's 
reimplementation of cmd.exe which is used to run batch files. This bug 
will be fixed in the upcoming CrossOver 6.0 release, but in the meantime 
the following command should work:

"/opt/cxoffice/bin/wine" --workdir "/home/frank/mnt/THEODIN/pbs113" 
wcmd.exe /c pbs.bat


Just an extra note for information, '--workdir .' is not needed since by 
default applications are started in the current directory.


Regards,

-- 
Francois Gouget
fgouget at codeweavers.com




More information about the discuss mailing list