Folder rename

Discussions about CSEntry
Post Reply
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Folder rename

Post by htuser »

Dear all,
I would like to know if there's a way to rename a folder using codes, by example in the menu form to rename the folder where data files are located using the operator ID.
Sincerely yours,
G.VOLNY, a CSProuser from Haiti, since 2004
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Folder rename

Post by Gregory Martin »

If you are doing this on Windows, then you can create a DOS batch program to rename the directory, launching the program with execsystem.

Code: Select all

rename defaultName operatorName
There is no way to do this directly in CSPro logic.
Post Reply