Delete subfolder in Project Explorer
This feature is updated in Origin 2017 SR0. It is supported to specify the path of folder. For more details, please refer to Release Notes.
1. pe_rmdir folder:= "Folder1";
2. pe_rmdir folder:= "/Folder1/Folder3" folpromt:=1 pgpromt:=1;
Specify the name and the path of the folder to delete.
Specify whether to prompt for folder deletion.
If TRUE(1), Origin will prompt the user to verify before deleting the folder.
Specify whether to prompt for deletion of pages in subfolder.
If TRUE(1), Origin will prompt the user to verify before deleting the pages.
This X-Function is used to delete a subfolder in Project Explorer. You can use both absolute or relative way to change current path, like "/FolderA/FolderB" or "../FolderB".
To delete a directory named myDir in the root directory, try the following command:
pe_rmdir myDir folpromt:=1 pgpromt:=1;
// It has been supported to specify the folder name directly since Origin 2017 SR0.
pe_rmdir folder:= "/myDir" folpromt:=1 pgpromt:=1;