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.
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.