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
 How to change file path of all books in a folder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cpyang

USA
1341 Posts

Posted - 01/18/2022 :  12:10:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Someone asked from our beta forum the following:

Is there a command to change the data source file path for all Mbooks in a specific folder?

I put the answer here so future search can find it.

string newpath$="c:\test\";
doc -ef M {
	string fpath$=wks.dc.source$;
	string fname$=fpath.GetFileName()$;
	wks.dc.source$=newpath$ + fname$;
}



CP
  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