O$: How to get the output of a commandline on a winxp box always
Jim Creak
jim at jacsoft.co.nz
Thu May 29 17:40:20 EDT 2008
Can you write a runme.bat file, and then run it?
Thanks
Jim
JACSoft Programming Ltd.
On 30/05/2008, at 3:55 AM, Rainer R. Greim wrote:
> Hi,
>
> I have to start a tool with params on the commandline, which prints
> the output in the console. Normally something like xxx.exe -p p1 -p
> p2>putitthere.txt
>
> So I assemble the strings with text and the start a
> - Start Program minimized
> - Launch program ....
>
> After that, I do a readfile to get the output back to Omnis..
>
> Sometimes its working, sometimes not ( the putitthere.txt) is missing.
>
> Other variant : instead of xxx.exe -p p1 -p p2>putitthere.txt
> I tried
> cmd /K / U xxx.exe -p p1 -p p2>putitthere.txt
> and
> cmd /K / U xxx.exe "-p p1 -p p2">putitthere.txt
>
> What is always working is :
> when I open a command shell ( cmd ) and the paste this string there.
>
> Would it be better to write all the stuff into a file and then call
> it with
> cmd xxx.cmd ?
>
> Thanks
> Rainer
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list