how do i start an exe with arguments and check return value.
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> TCL Scripting
 
hyperian  -  Thu Apr 28, 2011 2:24 pm Reply with quote
so in batch file i have this.

spcapp.exe seeprom_w 0 spcvbt.bin
IF %ERRORLEVEL% NEQ 0 (
echo error on flashing
go to exit)

how do i turn this in to tcl?
i tried
set ret [exec spcapp.exe seeprom_w 0 spcvbt.bin]
if ($ret != 0)
{
return "flash FAIL"
}
but this doesnt work. Also, spcapp also prints out information before finally returning 0 for success or 1 for failure.
I can't seem to find any combination where i could put in 'seeprom_w 0 spcvbt.bin' in there where it will read it correctly.
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> TCL Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.