Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / ITERATEEXE

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. ITERATEEXE
#12654
Posted by: Michael S 2009-01-24 17:14:18
Having a problem with this and wondering how it should be called. I'm trying to call the Beyond Compare exe. In a DOS window, I can call it using
bcomp.exe @bc_batch.txt /silent
The @ tells BC that bc_batch.txt contains a number of BC "commands". The /SILENT says I don't want to see any GUI window showing the results.

I've tried the following in RPC

compare_directory = 'c:\program files\Beyond compare 3'
compare_exe = 'Bcomp.exe'
bc_cmd = compare_directory"\"compare_exe
bc_batch_filename = "bc_batch.txt"
/*iterateexe(bc_cmd, , , ,"@"bc_batch_filename) */
command(bc_cmd' @'bc_batch_filename' /silent')
The iterateexe is commented out 'cos I simply can't get it to accept the @ parms. The command line is not commented since this works fine.

Any suggestions on how to get this to work. (The documentation on ITERATEEXE is, to me, a bit confusing. I'm not really sure how the source, destination, before and after are suppose to be used i the example above).
Message2. another thought
#12655
Posted by: Michael S 2009-01-24 17:51:49
It would be useful if ITERATEXE had a new option (D ?) for debug. I could see this splattering the actual command being sent to windows onto the console. That way it would be a LOT easier to see how the various arguments are handled/processed.
Message3.
#12656
Posted by: Jeff Glatt 2009-01-25 03:57:25
I'm not surprised that ITERATEEXE doesn't work, whereas COMMAND does. The @ thing is a console redirection symbol. If Beyond Compare allows that, then obviously it's a console mode windows program that expects to be run from a console. In this case, you must use Command. That simulates being run from a console. ITERATEEXE offers no such console redirection. It simulates launching an exe by clicking on its icon on the desktop.
Message4.
#12659
Posted by: Doug Arndt 2009-01-26 04:18:54
>  The @ thing is a console redirection symbol

I didn't know that, I know that's not relavant to the issue, but useful info anyway, thanks Jeff  :-)
Doug
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥738.00 ·
 
 
¥1,480.00 ·
 
 
¥397.00 ·
 
 
¥950.00 ·
 
 
¥264.00 ·
 
 
¥1,005.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0