| Author |
Topic  |
|
|
peter.cook
UK
356 Posts |
Posted - 04/18/2006 : 10:17:30 AM
|
Origin Version (Select Help-->About Origin): 7.5 SR6 Operating System: Win 2000
Hi,
Why can't i open or append an origin file with '%' in the name using doc -o or doc -a but I can via the file menu?
Cheers,
pete
|
|
|
larry_lan
China
Posts |
Posted - 04/18/2006 : 11:12:34 PM
|
Hi peter:
Hmmm, it's funny. Sometimes you can do that, suppose your file named "test%.opj",typing
doc -o c:\test%.opj
it works. But while your file named "test%h.opj", you can not open files by:
doc -o c:\test%h.opj.
Remember that '%' is substitution notation in LabTalk scripts, so '%h' is a global variable here and means the current active window title. So once your filename including '%', please use '%%' to replace of it, '%%' in labtalk means only one '%' symble. So you can open file by:
doc -o c:\test%%h.opj
Larry Originlab GZ Office
|
 |
|
|
peter.cook
UK
356 Posts |
Posted - 04/19/2006 : 1:33:51 PM
|
Hi Larry,
Thanks for the help - makes sense now that you mention it..
It's no problem for my apps to replace % in the file name by '%%' so should be okay.
Cheers,
Pete
|
 |
|
| |
Topic  |
|
|
|