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
 rename Folder / create 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

Rookie1

Posts

Posted - 06/22/2008 :  4:09:33 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 8
Operating System: xp

Hi,
1. is it possible to make a script, which renames a Folder to the name of the project?

Example:
The project is called "methan phi 1" and a folder in this project is called "g150". The script should rename the Folder "g150" to "methan phi 1".

2. Or a script which creates a new Folder with the name of the project? Like "methan phi 1"-Folder.

Thanks in advance!

VincentLiu

China
Posts

Posted - 06/23/2008 :  10:59:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Rookie1,

You may follow the ways below to operate on you project.

1.To rename a Folder to the name of the project
Firstly, click the folder you want to rename. Then you may use the following script to get you want.

pe_cd; // Return to the top level or you can click the top level folder directly without this command
str$ = %G; // Put the project name to a string variable
pe_rename g150 str$; //remember to change the folder name you want to rename


2. To create a new Folder with the name of the project

pe_cd /; // return to the root folder
str$ = %G;
Pe_mkdir str$;

If you still have questions, please feel free to contact us.

Regards,
Vincent
OriginLab Technical Service Team
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