Using dbms_scheduler to create a directory

Here is an example on how to use DBMS_SCHEDULER to create a directory. The database server must have access to the location where you wish to create the directory.

DBMS_SCHEDULER.CREATE_JOB(job_name   => 'create_dir_example',
      job_type   => 'executable',
      job_action => 'c:\windows\system32\cmd.exe /c mkdir \\PATH_TO_NEW_DIR',
      enabled    => TRUE,
      auto_drop  => TRUE);

Although this example creates a directory, you could alter it to run any batch script you want.