Page 1 of 1

Folder rename

Posted: October 8th, 2014, 2:13 pm
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,

Re: Folder rename

Posted: November 3rd, 2014, 1:04 pm
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.