Create windows folder with PL/SQL only

Hi
I need to create a folder using PL/SQL only.
We are using Oracle 10.2.0.1.0
Thanks.

No can do. Not with PL/SQL alone. You'd need a Java Stored Procedure and even then, it would create folders on the server.
Why would you use a database for OS administration?
Message was edited by:
maaher

Similar Messages

  • Create new folder with selected items

    I have a bunch of movies that I would like to place into individual folders of the same name (Without the extension name). I wanted to try and create a keyboard command to do this with the selected files, but can't manage to figure out how!
    What I did was try to create a new service command in automator, then went to keyboard shortcuts in system preferences to assign a keyboard command to it.
    I want to make something that works like control-command-n (to create new folder from selected items), only I want the items to be in individual folders of the same name.
    eg.
    Files selected such as:
    The incredibles.avi
    Cinderella.mkv
    Dogma.mp4
    each moved into individual folders labeled as:
    The Incredibles
    Cinderella
    Dogma
    Also, is there a way to change the control-command-n shortcut so it can create a new folder from a single item? It only works when there is more than one file selected.
    Thanks so much for any help!

    I am going to guess that you start off with a single file - what are you doing to generate these files? My *Get Names of Finder Items* action can get a name to use in the *New Folder* action - items passed to the New Folder action will get copied to it, so a little more detail may help in creating the workflow.
    The *Dispense Items Incrementally* action can also be used to dole out the items one at a time - knowing what the workflow is doing would help with the use of this action as well.

  • Can't create Windows partition with BootCamp

    When I try to create Windows partition with BootCamp I get the same error, no matter what size the partition is set to : "This disk cannot be partitioned because some files cannot be moved" and then keeps giving instructions about formatting the disk as a single partition (after performing a full backup I assume), and then try using BootCamp again.
    Does that mean I have to erase and reinstall OS X to be able to do that ? Cause I just did that and I have the same problem. I'm not reinstalling again, it took me an entire day to reinstall all my softwares and run all the updates... Plus it reminds me too much of my Windows days... I'm not supposed to do that on a Mac anyway
    Back to the topic... are there any services that need to be stopped during partitioning ? Any software installed that could prevent that ?
    What could cause this problem ?

    Weird thing is I had no trouble making a partition using BootCamp before I restored OS X, and I had the same softwares installed... or maybe I did that before I installed some of them... Could this be related to any software I have installed ?
    And judging by your suggestions I would say that the "iDefrag" option is the only way out of the two to make this work. Sounds a little extreme if you ask me... What happens on the first attempt of creating the partition that would make me choose backing up and/or defragmenting ? ... You don't have to answer that if it's too complicated...
    Same thing happened on my other MBP... so as far as I'm concerned, I can only restore one more time and try to make the partition right after first startup. If that fails, then it means it could have been software related... Or maybe restore again, install one more software/utility I use and try partitioning again... and again, and again, until it fails...that way I'll know what caused it...
    Just kidding...
    Thank you for the suggestions anyway !

  • Need to create P.O with reference to only P.R

    2)Need to create P.O with reference to only P.R. Mean without P.R system should not allow to create P.O how to do?

    hi
    try this
    go to SPRO-MM-Purchasing- Authorization Management-Define Function Authorizations for Buyers
    click on Function Authorizations: Purchase Order
    create  a new entry and
    check ref to PR then
    goto SU01 and on parameter tab enter the Parameter id = EFB and parameter value is what you define in the functional authorization key
    Enter the desired key as a parameter under the parameter ID EFB in the user master
    Also make sure that,In OMET in details of function Authorization>Possible ref. objects>Tick only Ref. to purchase requisition and not anything else.
    this way u can restrict the user from creating po with ref to pr

  • HT4236 (PC) When I sync a folder of photos, they sync to the generic photo library on my iPhone, but it creates another folder with duplicates of the pictures. How do I prevent/get rid of this second folder?

    (PC) When I sync a folder of photos, they sync to the generic photo library on my iPhone, but it creates another folder with duplicates of the pictures. How do I prevent/get rid of this second folder?

    Um... that does not contain "duplicates".
    It's just a view that shows you everything that's in your other albums and events in one place...

  • Flashing folder with question mark only on sartup.

    Flashing folder with question mark only on sartup. Won't recognise ANY startup key commands (tried different keyboards) and won't recognise OSX startup disk. Any ideas??

    The first thing I'd do is look at the silver side of the SL installation disc and check for finger prints or scratches and gently clean the disc with a lint free cloth. Also, instead of formatting the hard drive it would be worth deleting the partition(s) and repartitioning.

  • Create Drop Folder With Drop Only

    Mini Server, Mid 2011, 2 GHz, Intel Core i7, OSX 10.9.4
    I have my server with a static ip and would like to create a password protected folder with drop only features. I tried Pure FTP software for this, what info do I need to give my client to access this folder? I tried the static ip number from outside my network, no good. Any helpful hints are appreciated.
    Thanks

    Linc, Thanks for the reply. I am attempting to make a drop folder on my server for an outside person to drop only. I am not sure exactly how best to do this. New to the server world and this type of thing. I attempted to use Pure FTP, however, I am unable to access the fold from outside my net. Looking for the correct address to access this from outside, works fine using my ip address from inside the net. I attempted using my server software, but get lost on exactly what information to use to login to this folder.

  • Disk Image only creates a folder with "no access" symbol

    For some reason, when I 2x click a disk image of an application, it creates a folder on the desktop with the name of the application but with a red circle with a "-" in it in the lower right hand corner of the folder. I have restarted and repaired permissions. I did have a few other drives attached when this began, but have since disconnected them.

    leonel junior wrote:
    I boot from the Lion DVD,
    There are no Apple supplied Lion boot DVD's , you  use command r to boot into Recovery HD partition, if that doesn't work good chance the drive is dead, it likely will have to pulled to test any data recovery efforts made.
    I turned off the computer and next morning I turned on agian and this time with no problems, I use it for a few days with no problems but yesterday it happens again...
    Hold Shift key upon boot to fix the drive, reboot holding option and select OS X to boot and head to System Prefs, change the startup drive to OS X.
    If you can't do this, your looking at data recovery efforts or repalcing the drive, total erase & restore.
    PS: when the iMac started up with no problems I run disk utility and made a repair disk to the mac HD...
    The option key, set startup disk in system prefs should resove the issue.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Create a folder with date and time

    hey yall. i'm working on a program to assign files to a created directory. for the sake of organization, i want to create a folder that is the date and time it was created. (ie c:\\new\\02-Jun-2008\\file.txt) i know i'm missing something. here's the code i have so far to create the folder:
    Format formatter;
    Date date = new Date();
    formatter = new SimpleDateFormat("dd-MMM-yy_hh:mmaaa");
    String s = formatter.format(date);
    String path = "C:\\new\\";
    String destination = path + s;
    File d = new File(destination);
    d.mkdirs();
    i know its trivial for any advanced user but im only a student and any advise or useful links are great. i'll keep searching in the meanwhile. thanx.

    got it myself. failed to remember NO : are allowed in windows. <sigh>

  • Create a folder with permissions set to This Folder, subfolders

    Basically my app creates 4 folders that gives a specific user certain permissions.
    I can create the folder find, and i can give the user the correct permissions, but by defaulse it has Apply To set to this folder only, so if the user creates a folder, they wont have permissions to access it.
    I want to give it permissions that Apply to: This folder, subfolders, and files.
    I have spent hours upon hours trying different things, and trying to find the answer anywhere. Any help is greatly appreciated.
    Here is my code to create the folders:
    string mailDataPath = "E:\\Data\\MailData\\" + logonName;
    string userDataPath = "E:\\Data\\UserData\\" + logonName;
    string userProfilePath = "E:\\Data\\UserProfile\\" + logonName;
    string userSharedPath = "E:\\Data\\UserShared\\" + logonName;
    path[0] = mailDataPath;
    path[1] = userDataPath;
    path[2] = userProfilePath;
    path[3] = userSharedPath;
    //If folders do not exists, create them.
    for (int x = 0; x < pathAmount; x++)
    if (!Directory.Exists(path[x]))
    Directory.CreateDirectory(path[x]);
    //Sets folder permissions dependant on which folder it is
    if (path[x] != userProfilePath)
    DirectoryInfo info = new DirectoryInfo(path[x]);
    DirectorySecurity security = info.GetAccessControl();
    security.AddAccessRule(new FileSystemAccessRule(logonName, FileSystemRights.Modify, AccessControlType.Allow));
    info.SetAccessControl(security);
    else if (path[x] == userProfilePath)
    DirectoryInfo info = new DirectoryInfo(path[x]);
    DirectorySecurity security = info.GetAccessControl();
    security.AddAccessRule(new FileSystemAccessRule(logonName, FileSystemRights.FullControl, AccessControlType.Allow));
    info.SetAccessControl(security);

    Figured it out. It wasn't as difficult as i made it out to be.
    I just need to use 2 access rules
    DirectoryInfo info =
    new
    DirectoryInfo(path[x]);
    DirectorySecurity security = info.GetAccessControl();
    security.AddAccessRule(new
    FileSystemAccessRule(logonName,
    FileSystemRights.Modify,
    InheritanceFlags.ContainerInherit,
    PropagationFlags.None,
    AccessControlType.Allow));
    security.AddAccessRule(new
    FileSystemAccessRule(logonName,
    FileSystemRights.Modify,
    InheritanceFlags.ObjectInherit,
    PropagationFlags.None,
    AccessControlType.Allow));
    info.SetAccessControl(security);
    this is the code for the setting of the permissions.
    had to play around with it a bunch to get the correct inheritance.
    Im sorry i dont realy understand. Where do i put this code? Is there a guide for were to put this? Thanks for your help! :)

  • Powershell to create pop box which then creates a folder (with entered value) and sub folder with specific security

    Hi All,
    Complete novice to powershell would love some help to assist a new windows storage workflow I am implementing.
    I have a windows server 2012 file server (\\FS01) and projects share \\fs01\projects. 
    We use job numbers to create a project and name the folders with the job num (eg Job Num XX12345 , \\fs01\projects\XX12345)
    Then after each project folder is created we will create 4 subfolders underneath and specify the following rights to the following AD groups.
    Folder Name - AD Group- Permission
    Scoping - Project_Management -RW
    Delivery - Project_Management -R
    Finance - Finance- RW
    Assets - Creative - R
    I would like to create a script that lives in the route of \\FS01\Projects and when clicked a pop up box appears, the end users enters the job code  and then the script sets up the folder with the entered value and creates sub folders with the referenced
    AD groups and security.
    Any help would be awesome!
    Sammy

    Start by learning how to write PowerShell scripts.  What you are asking is a whole complex list of requirements.  This is a forum and not free consulting or training.
    Workflows are complex beasts that require a good knowledge of PowerShell.  Now is the time to start your training.  I recommend starting with a good book and taking your time learning PowerShell step-by-step.
    ¯\_(ツ)_/¯

  • Problem while creating XDO Report with PL/SQL

    hi,
    i am trying to create
    1.created XDO Report with the help of PL/SQL which takes two parameters and code for writing XML tags to output file
    2.created concurrent program that will call the PL/SQL pkg
    here i am trying to create the xml out put bu t i am stuck with some errors below is the code
    create or replace
    PACKAGE AgentTimeReport_XDO_pkg AS
    TYPE srdaterange_rec is RECORD (
    fromsrdate varchar2(20 byte),
    tosrdate varchar2(20 byte)
    Type agent_table IS TABLE OF srdaterange_rec INDEX BY BINARY_INTEGER;
    procedure GetAgentTimeList(o_errbuf  OUT VARCHAR2
                   ,o_retcode             OUT VARCHAR2,p_fromsrdate IN varchar2,p_tosrdate IN varchar2);
    END AgentTimeReport_XDO_pkg;
    create or replace
    PACKAGE BODY AGENTTIMEREPORT_XDO_PKG AS
      procedure GetAgentTimeList(o_errbuf  OUT VARCHAR2
                   ,o_retcode             OUT VARCHAR2,p_fromsrdate IN
    VARCHAR2,p_tosrdate IN VARCHAR2 )
    IS
    cursor cs_agenttime(p_fromdate IN VARCHAR2,p_todate IN VARCHAR2)
    is
    SELECT  
      incident.Incident_Number as ServiceRequestNumber,
      TO_CHAR (incident.incident_date,'DD-MON-YYYY') as ServiceRequestDate,
      incident.Summary as Summary,
      agenttime.agentname as AgentName,
      to_char(agenttime.agentstarttime,'DD-MM-YYYY HH24:MI') as StartTime,
      to_char(to_date('00:00:00','HH24:MI:SS') +
      (agenttime.endtime-agenttime.agentstarttime), 'HH24:MI') as TimeSpent 
    FROM cs_incidents_all_b incident,cs_agenttime_agv agenttime
    WHERE agenttime.incident_id=incident.incident_id
    AND incident.incident_date between to_date(p_fromsrdate,'DD-MON-YYYY')
    AND to_date(p_tosrdate,'DD-MON-YYYY');
      BEGIN
        /*First line of XML data should be ‘<?xml version="1.0" encoding='utf-8'?>’*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="utf-8"?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<AGENTTIME>');
    FOR cs_agent IN cs_agenttime(p_fromsrdate,p_tosrdate)
    LOOP
    /*For each record create a group tag <G_AGENT_TIME> at the start*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_AGENT_TIME>');
    /*Embed data between XML tags for ex:- <EMP_NAME>Abeesh</EMP_NAME>*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERVICEREQUEST_NUMBER>' ||
    cs_agent.ServiceRequestNumber 
                                    || '</SERVICEREQUEST_NUMBER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<SERVICEREQUEST_DATE>' ||
    cs_agent.ServiceRequestDate ||
                                       '</SERVICEREQUEST_DATE>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<START_TIME>' || cs_agent.StartTime
                                     ||'</START_TIME>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<TIME_SPENT>' || cs_agent.TimeSpent
                                     ||'</TIME_SPENT>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_AGENT_TIME>');
    END LOOP;
    /*Finally Close the starting Report tag*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</AGENTTIME>');
      END GetAgentTimeList;
    END AGENTTIMEREPORT_XDO_PKG;any one help me
    the log file
    Service: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    DEMOXDO module: DemoAgentXDO Report
    Current system time is 28-JUL-2009 05:16:46
    **Starts**28-JUL-2009 05:16:46
    ORACLE error 1861 in FDPSTP
    Cause: FDPSTP failed due to ORA-01861: literal does not match format string
    ORA-06512: at "APPS.AGENTTIMEREPORT_XDO_PKG", line 9
    ORA-06512: at "APPS.AGENTTIMEREPORT_XDO_PKG", line 25
    ORA-06512: at line 1
    The SQL statement b
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 28-JUL-2009 05:16:46
    ---------------------------------------------------------------------------

    Hi,
    Please see if these documents help.
    Note: 367607.1 - FDPSTP Failed Due to ORA-01861: Literal Does Not Match Format String
    Note: 370272.1 - not able to run the report set having unsupported date format of fnd-date4
    Note: 376034.1 - How to Handle New Date Formats in SQL*Plus and PL/SQL Procedures?
    Regards,
    Hussein

  • How to create a folder with date each day?

    I've not used Automator, just once to "create" a workflow to create a new folder with a name; but what I want is this:
    Each morning at 12:01 am, a new folder to be created with the correct date as the name of the folder.
    So for tomorrow, Sunday 23 Nov 2008 at 12:01, I'd suddenly have a folder on my Hard Drive that would have the date like 23 Nov 2008 or 11/23/2008 or 23-11-2008 or similar.
    Then at the end of a week I'd have 7 of these; - but I can manually trash them-- I want to create these on my HD since I backup via SuperDuper! each morning (automatically) at 3:35 am (incremental backup to an external La Cie HD) and I want to know if was done, so by having a folder with the date on it I can open the external HD and if I see that that folder with the recent date is there, then I'm confident the BackUp was run.
    I have been able to create a workflow to create a folder in Automator, but not sure how to:
    1. Have the folder created automatically each day at 12:01
    2. How to have the folder label be the date
    Thanks for any comments or certainly any other work-around or other way to do this or similar.
    Regards, Steve

    Open the AppleScript Editor. Copy the following into it:
    set dt to date string of (current date)
    set mth to word 2 of dt
    set dy to word 3 of dt
    set yr to word 4 of dt
    set dtt to mth & " " & dy & " " & yr
    tell application "Finder"
    make new folder at alias "Macintosh HD:Users:username:Desktop:" with properties {name:dtt}
    end tell
    Amend the path with your Hard Disk name and username. Save as an application to anywhere suitable.
    In iCal, set up an event with a daily repeat and an alarm at the time you want it: under 'Alarm' choose 'Open file': then in the next menu which will appear change from 'iCal' to 'Other' and navigate to your script. Enter the date and time.
    Your folder will be created as required: iCal does not need to be running. This script gives the folder name as, for example, 'November 22 2008', but it's easy to amend the script if you want something a bit different - for example:
    property zro : ""
    set yr to year of (current date) as string
    set dy to day of (current date)
    set mt to month of (current date)
    set dyy to dy as string
    set nmm to the number of items in dyy
    if nmm is 1 then
    set zro to 0
    end if
    if mt is January then
    set mth to "01"
    else if mt is February then
    set mth to "02"
    else if mt is March then
    set mth to "03"
    else if mt is April then
    set mth to "04"
    else if mt is May then
    set mth to "05"
    else if mt is June then
    set mth to "06"
    else if mt is July then
    set mth to "07"
    else if mt is August then
    set mth to "08"
    else if mt is September then
    set mth to "09"
    else if mt is October then
    set mth to "10"
    else if mt is November then
    set mth to "11"
    else if mt is December then
    set mth to "12"
    end if
    set dtt to mth & "-" & zro & dy & "-" & yr as string
    tell application "Finder"
    make new folder at alias "iBook HD:Users:roger:Desktop:" with properties {name:dtt}
    end tell
    This gives the folder name as, for example, 11-22-2008. (The days will have leading zeros, if you don't want these just remove the references to 'zro'.)

  • How to create a folder with spaces written in Java under Linux?

    Hello,
    I have a serious problem
    I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space
    For create the Unix command is easy to do either:
    mkdir My\ Folder
    or
    mkdir "My Folder"
    But how to translate this in Java, I tried with two commands :
    Runtime.exec("mkdir My\\ Folder")
    Runtime.exec("mkdir \"My Folder\"")
    For example :
    import java.io.IOException;
    public class CreerDossier {
    public static void main(String[] args) throws IOException {
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("mkdir My\\ Folder");
    runtime.exec("mkdir \"My Folder\"");
    But it's still not working,
    For runtime.exec("mkdir My\\ Folder") it creates two folders My\ and Folder
    For runtime.exec("mkdir \"My Folder\"") it creates also two folders "My and Folder"
    Are there solutions?
    Thank you !

    But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
    Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
    That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time.

  • How to create a Folder using a SQL Query?

    Hi
    How can I create a Folder (eg. C:\MyNewFolder) using SQL Query?

    Hi,
    I added some code in order to get the result from the xp_cmdshell command
    This returns null if successfull, if an error occurs returns the error message. May be useful instead of getting an sql error
    Code Snippet
    declare @cmdpath nvarchar(60), @Location nvarchar(100), @message nvarchar(max)
    set @Location = N'C:\Temp\Temp5'
    set @cmdpath = 'MD '+ @Location
    Create table #result
    result nvarchar(255)
    insert into #result (result) exec master.dbo.xp_cmdshell @cmdpath
    select @message = ISNULL(@message + ' - ','') + result from #result where result is not null
    select @message
    drop table #result
    Eralper
    http://www.kodyaz.com

Maybe you are looking for

  • Text looks blurred on Samsung display

    Hi, So, I have just gotten a Samsung SyncMaster TA550 for Christmas. I have it connected to my MBP13 mid-2012 (2,5GHz i5, 8GB of RAM, Intel HD Graphics 4000) with a HDMI cable and a Dr. Bott HDMI & DVI to Mini Displayport adapter. The display looks a

  • Cant get my head round delimited files

    hey guys i have been trying to sort this out for ages but i just cant get it to display correctly just wondering if any one could help Create a comma delimited file for example:      Smith, Jon      Bloggs, Fred      Jones, Anne Then simply read each

  • Live Connect - Argh! Help!

    Can someone show me a simple example of how to pass a string within Java back to the calling JavaScript code? I've read the LiveConnect Documentation at DevEdge and it still makes no sense to me. Many thanks.

  • BW35 & ECC 500 in same system?

    From the documents, and from the information from SAP, it appears that BW 3.5 can be installed into an ERP 2004 / ECC 500 system.  Does anyone have any experience with this during the ECC 5 rampup? I have a client that is considering this and would l

  • Music is being saved twice

    So my macbook is saving music in a seperate itunes folder. I unchecked the box where it asks to copy files into a seperate itunes library but what do i do now?? Should i deleted the itunes folder that has my music duplicated in the itunes library? I