[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: xxTool



PureBytes Links

Trading Reference Links




"progpath with blanks" "file path with blanks as 
param to prog"
 
That is: apply the "rule" on each of the two components, 
like this: 

xxExec(<FONT 
color=#ff00ff size=1>"<FONT face="Courier New" color=#ff00ff 
size=1>\"C<FONT 
size=1>:\\Program Files\\Microsoft Office\\Office\\Excel.exe<FONT 
face="Courier New" size=1>\<FONT face="Courier New" color=#ff00ff 
size=1>" <FONT face="Courier New" 
color=#ff00ff size=1>\"<FONT face="Courier New" 
size=1>C:\\Program 
Files\\AmiBroker\\ABTool\\Report.csv<FONT face="Courier New" 
size=1>\"<FONT 
color=#ff00ff size=1>");<FONT 
face=Arial>
 
(Note: I've used CSV, change to XLS)
Between the both components must be a 
blank.
 
But normally you can omit the program name: giving just 
the file
will start the associated 
program automatically.
 
UM
 
----- Original Message ----- 
From: "Fred" <<A 
href=""><FONT 
face=Arial>fctonetti@xxxxxxxxx>
To: <<A 
href=""><FONT 
face=Arial>amibroker@xxxxxxxxxxxxxxx<FONT 
face=Arial>>
Sent: Monday, June 09, 2003 1:53 AM
Subject: [amibroker] Re: xxTool
> Uenal,> 
> Okay I follwed this and I got it to work to bring up Excel ...> 
> But am having trouble with the next step ...> > I've I 
want to define the program and and operand in two parts and > put them 
together for xxEXEC to deal with then how do I do that ...> > 
Assume I have the same path as you fro Excel below ... then I have ...> 
> ExcelPath = "\"C:\\Program Files\\Microsoft > 
Office\\Office\\Excel.exe\"";> > now I need a way to separately 
define a file for Excel to open ...> > for the sake of argument 
lets assume it's in c:\Program > Files\AmiBroker\ABTool and has a file 
name of Report> > so I assume I'd want to do something 
like> > WorkSheetName = "\"C:\\Program > 
Files\\AmiBroker\\ABTool\\Report.xls\"";> > and then ...> 
> xxEXEC = (ExcelPath + WorkSheetName) ... but I can't get it to 
work.> > Thanks in advance,> > Fred> > 
--- In <FONT 
face=Arial>amibroker@xxxxxxxxxxxxxxx, <A 
href="">uenal.mutlu@x<FONT 
face=Arial>... wrote:> > Hi Fred, yes, you must embed paths containing 
blanks into quotes; > ie. "path with blanks"> > (you have to do 
this even on the command line, because otherwise> > it would be 
interpreted as a parameter...)> > > > > > Spaces 
in the program name make problems; here is> > the solution:> 
> > > xxExec("\"C:\\Program Files\\Microsoft > 
Office\\Office\\winword.exe\"");> > > > so, one has to embed 
the whole string in ".."> > The escape character \" gives one 
"      (it is used in front and > at the end; 
see above)> > (similar to \\  which gives one \)> > 
> > I'll see if this can be improved in the next version.> > 
> > UM> > > > > > ----- Original Message 
----- > > From: "Fred" <<FONT 
face=Arial>fctonetti@x...>> > To: 
<<FONT 
face=Arial>amibroker@xxxxxxxxxxxxxxx>> 
> Sent: Sunday, June 08, 2003 11:43 PM> > Subject: [amibroker] Re: 
xxTool> > > > > > > Uenal,> > > 
> > > Have you had a chance to look into what I asked about ? i.e. 
> xxEXEC's > > > apparent ?! incapability to deal with long 
path names in finding > an > > > executable ... if they are 
short then no problem but past a > certain > > > length they 
seem not to be found or not dealt with properly.  For > > > 
example anything even in or below the C:\Program Files\ dir seems > not 
> > > to work. but if I move the module I want to a simpler dir 
name no > > > problem> > > > > > Thanks 
in advance,> > > > > > Fred> > > > 
> > --- In <FONT 
face=Arial>amibroker@xxxxxxxxxxxxxxx, <A 
href="">uenal.mutlu@x<FONT 
face=Arial>... wrote:> > > > I told you that exactly twice; go 
and look at the replies (one> > > > of them was to Anthony). But 
if you ignore what was told> > > > you then it is your own 
fault, sorry can't and won't help.> > > > 
UM






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.