Creating folder or file in specific path

Hi,
Can we create files or folders in a specific path (could be on a remote server also) using oracle?

Oracle does not provide functionality per se to perform such O/S level creations.
You may be able to use Chris Poole's XUTL_FTP package to issue the commands via FTP server:
http://www.chrispoole.co.uk/apps/xutlftp.htm
(Can't remember if Chris implemented the FTP md command, but I think he did)

Similar Messages

  • Upload a file in Specific Path

    Hi All,
    I am not able to understand how to upload a file in specific path(Ex: D:\Upload). I am searched in many sites, but i didn't found any solution. By default it is taking C:\fakepath. Please help me how to give a default specific path while uploading a file .
    Thanks,
    Kushi

    Hi Ronald,
    Please find the attached screen shot here, in the screen shot you can find the path "C:\fakepath\io.txt". Here i am using io.txt file to upload. I want this file has to be place in other path i.e., "D:\upload". But by default the file is uploading in C:\fakepath. Plesae let me know where i need do changes.
    Here are the types i used:
    Attributes
    Type
    FILE_NAME
    STRING
    FILE_TYPE
    STRING
    FILE_SIZE
    STRING
    FILE_CONTENTS
    XSTRING
    Node2: N_FILE_DOWNLOAD 
    Cardinality is 0.n
    Attributes
    Type
    FILE_NAME
    STRING
    FILE_TYPE
    STRING
    FILE_SIZE
    STRING
    FILE_CONTENTS
    XSTRING

  • Create folder, copy file, and then register OCX via GPO

    I will try and explain this issue.
    I have a .bat (ocx_reg.bat) file with the following:
    echo off
    md c:\ocx
    xcopy \\server.contoso.com\install$\ocxfile.ocx c:\ocx /Y /D /E /K /I
    %systemroot%\syswow64\regsvr32 /s c:\ocx\ocxfile.ocx
    I have saved this .bat file in the %logonserver%\netlogon folder.
    I have then configured this in a GPO:
    GPO => Computer Configuration => Windows Settings => Scripts => Startup and added
    %logonserver%\netlogon\ocx_reg.bat as a Startup script.
    However when booting the computer and logging in with a domain user, the folder is not created, and so the OCX is not registered.
    I have run gpresult and it doesn't even show that I have configured anything under that particular section of the GPO.
    The user logged in is a member of the security group which this GPO is targeted for under Security Filtering.
    So I am not sure why this is happening.. 
    Any suggestions?
    Kthxbai

    Hi,
    Before going further, please make sure that the script itself can run successfully. Besides, for we are assigning the script as computer startup script, we need to make sure the computer accounts have access to the script. We can test this
    by accessing the script stored on the server from a client computer and run the script to see if it works.
    >>The user logged in is a member of the security group which this GPO is targeted for under Security Filtering.
    For we are applying computer settings, the computer accounts must have
    Read and Apply permissions to the GPO. We need to add computer accounts in question under Security Filtering. Otherwise, the GPO won't get applied to computers in question.
    >>I have run gpresult and it doesn't even show that I have configured anything under that particular section of the GPO.
    After making sure that the GPO is correctly linked and Security Filtering is set correctly. If the issue persists, we can run command
    gpresult/h c:\gpreport.html with administrative privileges to further check group policy result report. If necessary, you can upload the report to Onedrive and provide us the download link.
    In addition, regarding how to assign computer startup scripts, the following article can be referred to for more information.
    Create System Startup / Shutdown and User Logon / Logoff Scripts 
    http://technet.microsoft.com/en-us/magazine/dd630947.aspx
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Write a file with specific path

    hi all,
    i found some sample code to write into a file, like using new FileOutputStream or new FileWriter.
    the problem is that you only specify the file name. i'd like to specify the path where the file will be. is it possible ? which class should i use ?
    regards

    Hi,
    File f = new File("C:\\Programs\\MyProgs\\Test.txt");
    that should do.
    Phil

  • After Effects error: Creating a resource file

    Hi everyone
    I'm administrating a machine with several users mainly using After Effects. The machine runs on Windows 7 64 bit.
    I recently had to install videocopilots Optical Flares. Everything runs fine on my admin account but if i open AE on a user account i get an error message while on the loading screen. It says:
    After Effects error: Creating a resource file "c:insert path to OpticalFlares.aex here" (might be a bit different in english as i translated this from german)
    Every user has full read and write permission on the AE support files folder. Has anyone ever had such an error? All other plugins work as they should on every account.
    Thanks for any hints!
    Michael

    I still think it is a permissions/ user privileges/ policies/ security issue - if it runs on one account, it is unlikely the plug-in is damaged or you installed the 32bit version in CS5 or vice versa. I strongly suspect the plug-in is unable to probe your graphics card and thus never initializes. Perhaps it's being blocked by some security tool or your user account doesn't have the permissions to load system drivers. The latter can be fixed by changing the respective entry in your group policy editor (gpedit.msc). The respective point would be in Computerkonfiguration --> Windows-Einstellungen --> Sicherheitseinstellungen --> Lokale Richtlinien --> Zuweisen von Benutzerrechetn --> Laden und Entfernen von Gerätetreibern. And of course temporarily turn off security stuff to verify it's not the problem.
    Mylenium

  • Folder creation in a given path

    Hi all,
    i would like to create folder dynamically in the given path(This is a selection screen field) and this should be irrespective of operating system.If any methods or function modules which serve this purpose
    please let me know.
    Thanks,
    Ram.

    Hello,
    I think the FM given by Rahul is available on SolMan servers and not plain ECC servers.
    You can try using the code below.
    DATA: COMMAND(200).
    DATA: BEGIN OF TABL OCCURS 0,
    LINE(255),
    END OF TABL.
    command = 'mkdir C:\temp\team1'.
    CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND ID 'TAB' FIELD TABL-*SYS*.
    It is specific to a Windows App server. But you can put the appropriate unix command for Unix servers
    The OS type can be checked with sy-opsys

  • Creating and accessing file outside isolated storage

    Hello,
    I'm trying to learn to write apps in c#. 
    I want to create an app that can save my location in a file that I can acces on my computer. 
    I was wondering if someone could explain to me how I can create folders and files that I can acces outside of the app, or if there is a site where they already explain this.
    I have been searching for a few hours now, but I can't find it.
    I hope someone can help me.
    Thanks

    Hi TomTom93,
    As far as I known, we can create folder and files within the isolated storage but we can not acess it
    outside of app except some public folders. Because every app has his own
    isolated storage and all of them are independent. If you want to save some information which can be access out of the app, I will recommand you use the
    WCF Service or database.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Storing output file created by web application in specific folder

    Hi Friends,
    I am creating a text file through my web Application which is on JBoss and I have to read this file in the JSP to print the out put.
    My problem is, the text file has been created in JBoss/bin, I want it to be created in my project folder.
    Can some one please guide me in specifying the path to place the file.
    Thanks in advance.
    Preeti

    I want to add one more sentence to my previous message:
    I can do this by specifying absolute path but I want to specify this path in my web.xml. which tags should I add to web.xml ?
    Thanks,
    Preeti

  • Create folder and move files to specific directory in AL11

    My requirement is to create a new folder in one of the existing directories in AL11 and move some files into it.
    I searched the forum and found this solution but it creates folder only in DIR_HOME directory.
    data: unixcom like rlgrap-filename.
    data: begin of tabl occurs 500,
    line(400),
    end of tabl.
    unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command
    call 'SYSTEM' id 'COMMAND' field unixcom
    id 'TAB' field tabl[].
    I want the folder to be created in some other directory DIR_INTERFACES .
    Any suggestions are welcome ..

    Get complete path (physical path) using FM FILE_GET_NAME_USING_PATH.
    Default directory is DIR_HOME, hence it creates file in that directory...If you specify complete folder name, it will be created under that path..
    Concatenate mkdir
    space
    <physical path>
    mydir
    into unixcom.

  • How to create file in specific folder...

    Hi developers,
    I am new to java. I would like to create file in some folder. But i am fail to create it. Can any body help me please..
    This is my code. It creates folder well...But file doesn't create.
    import java.io.*;
    public class file1
         public static void main(String ar[])
              File f = new File("c:\\ram");
              f.mkdirs();
              String pat = f.getAbsolutePath();
              File ffs = new File("c:\\ram.txt");
              System.out.println(pat);
    }With Regards
    sure...:)-

    Also, it's not clear where you want the file.
    You're making a directory C :\ram, but then you're talking about a file ram.txt that's right in C:
    Also, you can use / instead of doubling up the \ and it wil get converted properly.
    If I wanted to create a file C:\ram\ram.txt I'd do this:
    File parentDir = new File("C:/ram");
    File file = new File(parentDir, "ram.txt");
    parentDir.mkdirs();
    file.createNewFile();

  • Cannot add multiple file screens on a specific path

    I have a situation where the limitation of adding a single file screen to a specified path just doesn't work.
    Using Windows Server 2008 R2 64Bit
    We don't allow users to store things like images, video and audio on any server and we want to be notified whenever someone attempts to do so.
    To that end we setup the email notification and it works great.
    The problem is that now, we get a notification for some file types where we don't want notification, but because you can only setup a single file screen for a specific path, the notifications are sent, in the hundreds most of the time.
    What I really need is the ability to create a file screen for images, videos, audio and executable files that will send notification to the person responsible for ensuring users do not violate the usage policy, and a separate file screen for other
    files that we have restricted because they simply create clutter and for the most part are automatically generated by the OS when the user logs into the domain ... things like desktop.ini and thumbs.db files. For these files, I do not wish to receive
    notification because it isn't really a violation of the computer use policy so much as it is a restriction put in place to prevent unfettered clutter from filling the limited space we allocate for users.
    Is there a solution that can be instituted that can make this happen?

    Hi,
    As you said we cannot set more than 1 file screen for a specific folder.
    From your description you would like to stop the reports for some default files like desktop.ini, thumbs.db etc, how about add them into Exception list in the file screen you created for that folder? This seems to be the only workaround in current situation. 
    If you have any feedback on our support, please send to [email protected]

  • Add all files in the path while creating folio file in Folio builder

    Hello everyone.
    I am using InDesign CS 5 and creating folio for iPad 2. My Folio builder was working fine till last week, but suddenly i see a change the way it behaves. When I update the files in Folio builder, it adds all the files in the path (not just the links in the file) including source PSD files and other related files which I have never used in the InDesign, making the folio file increase in size. Can someone please help me how to overcome this situation?
    Thank a lot in advance.
    I look forward for your solution.

    Do you have an HTML file in there? If so, put it it (and its assets) in its own folder.
    Bob

  • Automator: Create folder from suffix of filename and put file names with same suffix into folder

    I've been using a script to use automator to create a folder from the filename and put that file into it the folder just created.
    I have a bunch of files that have similar names to them, but I don't want every file to be put into its own folder, instead I want all files with the same suffix (001) to go into the same folder.  I would also like the folder name to just be named the same as the suffix (001) instead of the full file name.
    For example all of these files names that end with the same integer (001) should be dumped into the same folder named "001":
    Boston_ProRes422_1920x1080_24p_Audio_001
    Boston_ProRes422_3840x2160_24p_Audio_001
    Boston_ProRes422_3840x2160_24p_RAW_Audio_001
    Boston_ProRes422_1920x1080_24p_Audio_002
    Boston_ProRes422_1920x1080_24p_Audio_005
    Boston_ProRes422_1920x1080_24p_Audio_010
    Any help at all would be incredible!!
    Thanks!
    Here's the script I'm using right now:
    on run {input, parameters} -- create folders from file names and move
      set output to {} -- this will be a list of the moved files
      repeat with anItem in the input -- step through each item in the input
      set {theContainer, theName, theExtension} to (getTheNames from anItem)
      try
      set destination to (makeNewFolder for theName at theContainer)
      tell application "Finder"
      move anItem to destination
      set the end of the output to the result as alias -- success
      end tell
      on error errorMessage -- duplicate name, permissions, etc
      log errorMessage
      # handle errors if desired - just skip for now
      end try
      end repeat
      return the output -- pass on the results to following actions
    end run
    to getTheNames from someItem -- get a container, name, and extension from a file item
      tell application "System Events" to tell disk item (someItem as text)
      set theContainer to the path of the container
      set {theName, theExtension} to {name, name extension}
      end tell
      if theExtension is not "" then
      set theName to text 1 thru -((count theExtension) + 2) of theName -- just the name part
      set theExtension to "." & theExtension
      end if
      return {theContainer, theName, theExtension}
    end getTheNames
    to makeNewFolder for theChild at theParent -- make a new child folder at the parent location if it doesn't already exist
      set theParent to theParent as text
      if theParent begins with "/" then set theParent to theParent as POSIX file as text
      try
      return (theParent & theChild) as alias
      on error errorMessage -- no folder
      log errorMessage
      tell application "Finder" to make new folder at theParent with properties {name:theChild}
      return the result as alias
      end try
    end makeNewFolder

    Thanks Neil for the response! That script didn't work, but I did get it to work with my old script by changing "set TheName to" numbers different.  Here's my final script which creates folders named "001", "002", and so forth and dumps in the files that end in that same suffix in the matching folder.
    on run {input, parameters} -- create folders from file names and move
      set output to {} -- this will be a list of the moved files
      repeat with anItem in the input -- step through each item in the input
      set {theContainer, theName, theExtension} to (getTheNames from anItem)
      try
      set destination to (makeNewFolder for theName at theContainer)
      tell application "Finder"
      move anItem to destination
      set the end of the output to the result as alias -- success
      end tell
      on error errorMessage -- duplicate name, permissions, etc
      log errorMessage
      # handle errors if desired - just skip for now
      end try
      end repeat
      return the output -- pass on the results to following actions
    end run
    to getTheNames from someItem -- get a container, name, and extension from a file item
      tell application "System Events" to tell disk item (someItem as text)
      set theContainer to the path of the container
      set {theName, theExtension} to {name, name extension}
      end tell
      if theExtension is not "" then
      set theName to text -5 thru -((count theExtension) + 4) of theName -- just the name part
      set theExtension to "." & theExtension
      end if
      return {theContainer, theName, theExtension}
    end getTheNames
    to makeNewFolder for theChild at theParent -- make a new child folder at the parent location if it doesn't already exist
      set theParent to theParent as text
      if theParent begins with "/" then set theParent to theParent as POSIX file as text
      try
      return (theParent & theChild) as alias
      on error errorMessage -- no folder
      log errorMessage
      tell application "Finder" to make new folder at theParent with properties {name:theChild}
      return the result as alias
      end try
    end makeNewFolder

  • I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. Need process under the hood

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

  • Creating pdf file from excel worksheet and save file in a macro created folder.

    Hi I have 3 worksheets and I want to conditionally convert them into a pdf file and than save said file into a folder that the macro will create if not already existing and name it with content of cell A1. So my question is if it is possible to do that with
    the following program?
    Thanks.
    Sub PrintStuff()
    Dim vShts As Variant
    Dim strFileName As String
    vShts = Sheets(1).Range("A1")
    If Not IsNumeric(vShts) Then
    Exit Sub
    Else
    ' Change path and filename as desired
    strFileName = "C:\MyFolder\MySubfolder\MyFile.pdf"
    If strFileName <> "False" Then
    Select Case vShts
    Case 1
    Sheets("Sheet1").Select
    Case 2
    Sheets("Sheet2").Select
    Case 3
    Sheets(Array("Sheet1", "Sheet2")).Select
    End Select
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
    Filename:=strFileName, _
    OpenAfterPublish:=False
    End If
    End If
    End Sub

    Option Explicit
    Sub PrintStuff()
    Dim Path As String, FileName As String
    Dim ThisSheet As Variant
    Dim MySheets As Variant
    Path = "C:\MyFolder\MySubfolder\"
    FileName = "MyFile.pdf"
    If Not FolderCreate("C:\MyFolder\MySubfolder") Then
    MsgBox "Can not create folder"
    Exit Sub
    End If
    Select Case Range("A1")
    Case 1
    Set MySheets = Sheets("Sheet1")
    Case 2
    Set MySheets = Sheets("Sheet2")
    Case 3
    Set MySheets = Sheets(Array("Sheet1", "Sheet2"))
    Case Else
    MsgBox "Uuups."
    Exit Sub
    End Select
    Set ThisSheet = ActiveSheet
    MySheets.Select
    ActiveSheet.ExportAsFixedFormat xlTypePDF, Path & FileName, OpenAfterPublish:=False
    ThisSheet.Select
    End Sub
    Private Function FolderCreate(ByVal Path As String) As Boolean
    'Creates a complete sub directory structure
    Dim Temp, i As Integer
    On Error GoTo ExitPoint
    If Dir(Path, vbDirectory) = "" Then
    If Right$(Path, 1) = "\" Then Path = Left$(Path, Len(Path) - 1)
    If Left$(Path, 2) = "\\" Then
    i = InStr(3, Path, "\")
    Temp = Split(Mid$(Path, i + 1), "\")
    Temp(0) = Left$(Path, i) & Temp(0)
    Else
    Temp = Split(Path, "\")
    End If
    Path = ""
    For i = 0 To UBound(Temp)
    Path = Path & Temp(i) & "\"
    If Dir(Path, vbDirectory) = "" Then MkDir Path
    Next
    End If
    FolderCreate = True
    ExitPoint:
    End Function

Maybe you are looking for