SPAWN Problems under Windows [message #52131] |
Fri, 05 January 2007 14:39 |
aberte@gmail.com
Messages: 8 Registered: December 2006
|
Junior Member |
|
|
Hi everybody,
here's my problem:
cmd = '"D:\Media\Facu\Sistemi Telerilevamento Laboratorio\Progetto
IDL\MapMatch\eseguibili-test\normal\region_growing.exe " '
a = '"D:\Media\Facu\Sistemi Telerilevamento Laboratorio\Progetto
IDL\MapMatch\eseguibili-test\normal\Image.raw " '
b = '"D:\Media\Facu\Sistemi Telerilevamento Laboratorio\Progetto
IDL\MapMatch\eseguibili-test\normal\TrueObj.raw " '
c = '"1024 " '
d = '"1024 " '
e = '"D:\Media\Facu\Sistemi Telerilevamento Laboratorio\Progetto
IDL\MapMatch\eseguibili-test\normal\seed.txt" '
f = '"normal" '
I put complete path of files, because my routine is using them the way
I declared here.
So i do the following:
params = a + b + c + d +e+ f
spawn, cmd, /LOG_OUTPUT ; works!
spawn, [cmd,params], /LOG_OUTPUT ; does not work :(
Why? Is lentgh of strings important?
(Another thing, I tried to do the following: all string, cmd + a +b
+... I copied to a test.bat file, and run it directly from windows, and
it worked)
|
|
|