Hi all,
I'm trying to create a folder using either host mkdir or running a job which runs mkdir. The mkdir seems to work, but creates a folder called my_directory rather then using the value of the variable.
the ts_path does contain the value "c:\new"
I've also tried using:
HOST mkdir:my_Directory
I'd also like to check if the folder exists before creating the folder if possible.
Any help would be greatly apreciated.
I'm trying to create a folder using either host mkdir or running a job which runs mkdir. The mkdir seems to work, but creates a folder called my_directory rather then using the value of the variable.
Code:
Declare
my_Directory varchar2(100);
Begin
select p_value into My_Directory
from PART_CONFIG where p_name = 'TS_PATH' and p_group='CAP';
DBMS_SCHEDULER.CREATE_JOB (
job_name =>'create_dir',
job_type =>'executable',
job_action => 'c:\windows\system32\cmd.exe /c mkdir my_Directory',
enabled =>true,
auto_drop => true
);
commit;
end;
/
the ts_path does contain the value "c:\new"
I've also tried using:
HOST mkdir:my_Directory
I'd also like to check if the folder exists before creating the folder if possible.
Any help would be greatly apreciated.