The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 doc command and % in filename

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
peter.cook 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

2   L A T E S T    R E P L I E S    (Newest First)
peter.cook 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

larry_lan 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


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000