It is interesting to know is it possible to perform directory/file system operations (create, delete, rename, move) using root staff? For example I have such tasks:
get current directory path;
find in current directory all files with extension “.txt”, rename them using extension “.dat”, also replace symbol “-” by “_” in basenames;
find in current directory all files with extension “.doc”, move them to another arbitrary directory;
find in current directory all files with extension “.ppt” and delete them;
call inside the root script some external execute program which must work with “.dat” files.
Please be so kind list the appropriate root script in order to perform these tasks.
Good ! you found the solution.
Note also that you may do more in a shell script instead of calling several time gSystem->Exec…
You can group your shell commands in “your_script” and do only: