AltME: SDK

Messages

Steeve
Even with VISTA, I have problems using CALL and relative paths.
Changing paths and Woops! you are randomly teleported
Endo
did you put /SHELL ?
Maxim
yes.
Endo
my application calls BCP.exe to import data to a SQL server database.
in /output string I try to FIND "error" word, and if exists, I popup an alert.
your /output is to a pre-initialized string right?
and try /show as well.
Maxim
funny, I was trying something else and just saw that /show was still a refinement  and that works.
darn.  I havn't used /show for years.
Endo
:))
Maxim
but I actually found a better solution.
using cheyenne's Call  and  add  "Cmd /C" to the head of the command (without using  /show)
you must simply remove the  ^M  chars , but at least there are no command prompts popping up.
^M  chars from the piped output
Endo
That's a good solution.
Maxim
rebol turns app dev times upside down.   2 hours to build an app   2 days to figure out how to launch a command line without crashing the app  ;-)
Gregg
The problem with /show, for me, is that it was added in such a way that it broke compatibility with the old version of CALL. Doc's stuff is a great replacement.

Gabriele
Max, the bug with /output in encap used to be that it would fail (i think it would actually crash) if you did not have the REBOL console open. Maybe something similar happens on the newer versions as well?
eg. try a print "something" before the call/output and see if that makes it work.
ddharing
We have had similar problems with Windows 7 and Windows Server 2008R2. I thought it was a new security "feature". Starting the app from a command shell works fine. Setting compatibility options and "run as administrator" doesn't help.
Maxim
Gab, It crashes (freezes) with the console open.  currently, it really requires /show if using the R2 CALL func.
otherwise pre-pending   "CMD /C"    to the command while using cheyenne's win-call also works, but has the advantage of not showing a dos prompt at each execution.

GrahamC
this works from  2.7.8.3.1   get-env "%userprofile%"  but in my SdK I get none.
Ideas
GrahamC
ah.. works without the %

Last message posted 119 weeks ago.