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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 doc command and % in filename
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 04/18/2006 :  10:17:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

peter.cook

UK
356 Posts

Posted - 04/19/2006 :  1:33:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000