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

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
Rookie1 Posted - 06/22/2008 : 4:09:33 PM
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!
1   L A T E S T    R E P L I E S    (Newest First)
VincentLiu Posted - 06/23/2008 : 10:59:45 PM
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

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