Synchronous command line execution?

User discussion and information resource forum for Image products.

Synchronous command line execution?

Postby srynoname » Sun Apr 08, 2012 8:11 am

When started from the command line, IFW executes asynchronous, also the GUI is shown. Is there any better command line integration of IFW? I don't really care about the GUI, but running it synchronous or at least offering the possibility to execute some user-defined post image process script would be very useful. Currently I e.g. want to run 2 imaging tasks one after each other, is there any way to do this? Thank you :-)

Edit: I am also missing a possibility to read the error code due to the asynchronous execution ):
srynoname
 
Posts: 5
Joined: Sat Mar 31, 2012 4:48 pm

Re: Synchronous command line execution?

Postby TAC109 » Sun Apr 08, 2012 8:52 am

start /min /wait "" "C:\{path}\imagew.exe"
where {path} is the path to IFW.

The DOS Start command when used as above, will achieve what you want.

On Sun, 8 Apr 2012 08:11:35 PDT, srynoname wrote:

>When started from the command line, IFW executes asynchronous, also the GUI is shown. Is there any better command line integration of IFW? I don't really care about the GUI, but running it synchronous or at least offering the possibility to execute some user-defined post image process script would be very useful. Currently I e.g. want to run 2 imaging tasks one after each other, is there any way to do this? Thank you
>
>![:-)]({SMILIES_PATH}/icon_e_smile.gif)
>
>Edit: I am also missing a possibility to read the error code due to the asynchronous execution ):
>
TAC109
 
Posts: 216
Joined: Tue Sep 06, 2011 3:41 pm

Re: Synchronous command line execution?

Postby srynoname » Sun Apr 08, 2012 9:03 am

That seems to work great and I learned something new about the command line, thank you!
One question: Why do I need the "" before "C:\\imagew.exe"? I checked start /? but I couldn't find why?
srynoname
 
Posts: 5
Joined: Sat Mar 31, 2012 4:48 pm

Re: Synchronous command line execution?

Postby TeraByte Support(PP) » Sun Apr 08, 2012 12:21 pm

It's just a blank title for the command. If you don't include it the program thinks the path in the quotes is the title.
Code: Select all
START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
      [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
      [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B]
      [command/program] [parameters]
Paul Purviance
TeraByte Support
TeraByte Support(PP)
 
Posts: 1109
Joined: Thu Aug 11, 2011 5:51 pm

Re: Synchronous command line execution?

Postby srynoname » Sun Apr 08, 2012 12:25 pm

ah, ok, thank you. I missed this argument, somehow it looks like it would be optional, but I understand the problem with leaving it out.
srynoname
 
Posts: 5
Joined: Sat Mar 31, 2012 4:48 pm


Return to Image for DOS/Linux/Windows

cron