Get Folder path

Hi,
Windows xp,
Database 10g,
Forms 10g,
Is there any way to get os folder path usiing webuitl dialog or at least check the current folder exists or not.
Thanks,

Where do you want to verify if a specific directory or file exists? On the client or on the middle tier? You could try to create a file in the directory you want to check (or try to open the file in read mode to check if a file exists) with client_text_io (client) or text_io (middle tier). By that you would also be sure that you have read/write privilages in the directory. If you don't want to create / read a file (on the client) there is the possibility to create a java bean which checks this with the File class (isFile() or isDirectory())
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/File.html#isDirectory()
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/File.html#isFile()
cheers

Similar Messages

  • Getting folder Path if I know the FolderID

    Hi
    I can get the folder path If I know the folderID I use a pretty elaborate method to do this.
    I have been trying to use the andfilter clause and get an invalid cast exception.
    Could any one please help
    DimSearchFactory AsISearchFactory
    SearchFactory = ptSession.GetSearchFactory
    DimsearchRequest AsIPortalSearchRequest
    searchRequest = SearchFactory.CreatePortalSearchRequest
    DimintFolders() AsInteger
    ReDimintFolders(0)
    intFolders(0) = 200
    DimfieldsToReturn(0) AsField
    fieldsToReturn(0) = PortalField.FOLDER_PATH 'PortalField.ForID(propertyID)
    searchRequest.SetFieldsToReturn(fieldsToReturn)
    DimFilterClause AsIFilterClause
    FilterClause = SearchFactory.CreateAndFilterClause
    FilterClause.AddStatement(PortalField.OBJECT_ID, Operator.Equals, CInt(3044))
    searchRequest.SetDocFoldersToSearch(intFolders, True)
    DimobjectTypes() AsObjectClass = {ObjectClass.DocumentFolder}
    searchRequest.SetObjectTypesToSearch(objectTypes)
    searchRequest.SetQuery(SearchFactory) This is where it errors out Invalid Cast exception
    DimsearchResponse AsISearchResponse = searchRequest.Execute()

    Looks like there's a "path" property in this bad boy
    http://www.plumtree.com/edoc/References/ndocs/Plumtree.Remote.PRC.DocumentFolderProperty.Path.html
    http://www.plumtree.com/edoc/References/javadocs/com/plumtree/remote/prc/DocumentFolderProperty.html
    System.Object Plumtree.Remote.PRC.ObjectProperty Plumtree.Remote.PRC.DocumentFolderProperty
    I think (think....) I have a piece of sample code for this somewhere. Let me ask one of our guys if we have something handy.
    Thanks,
    Eric

  • Trying to uninstall or repair get an error message: The folder path 'My Music' contains an invalid character.

    Trying to uninstall or repair get an error message: The folder path 'My Music' contains an invalid character. How do I fix?

    Try the following user tip:
    "not a valid short file name" and "invalid character" install errors

  • Trying to remove an old version of I Tunes and keep getting the message "The folder path I Tunes contains an invalid character' . It won't let me go any further, have tried deleting/repairing the program but keep getting the same message?

    trying to remove an old version of I tunes, but keep getting the message 'The folder path I Tunes contains an invalid character'
    It won't let me go any further, have tried deleting/repairing but get the same message and am blocked from continuing?

    Hi Barbara,
    I had a similar problem recently and using the "more like this" feature I discovered an answer. To a problem posed by Holo7,  who like myself was a newbie on this platform,  b noir proposed a solution to Holo7's problem that also worked with my problem. It involves downloading a version of MS Windows Instal Cleanup and using it to completely remove all traces of the old version.
    If you look at my problem (follow OldGit66) and the link to Holo7's problem then you will find b noir's answer which I think may help you. I am new around here so you might want to wait for one of the higher status correspondents.
    Regards
    John

  • When installing or uninstalling iTunes I get 'The folder path 'My Music' contains an invalid character' and fails

    When installing or uninstalling iTunes I get 'The folder path 'My Music' contains an invalid character' and fails

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • TS3212 I keep getting this error message "The folder path 'Program Files' contains an invalid character.' when upgrading itunes to Itunes 10. I could not uninstall because of the same error message. What needs to done?

    Can not download and install Itunes 10 - Get this message "The folder path 'Program Files' contain an invalid character. I tried to uninstall my old Itune through Control Panel but get the same message. What do I need to do?

    Perhaps try the following user tip with that one:
    "not a valid short file name" and "invalid character" install errors

  • I am trying to download the latest iTunes update.  Keep getting error message stating "The folder path 'My Documents' contains an invalid character".  I can't uninstall iTunes for the same reason.  HELP!

    I am trying to download the latest iTunes update; keep getting error message that says "The folder path 'My Documents' contains an invalid character".  This also happens when I try to uninstall iTunes.  HELP!

    OK, never mind!  I saw another question on the right side that addressed the problem, and it worked perfectly!  Went to Major Geeks' page, downloaded the Windows Installer Cleanup Utility, and was able to reinstall the updated version of iTunes!  This community is super!

  • How can i get the path to config folder placed inside the jar file?

    Hi i have developed an RCP application using eclipse.
    In my application config directory is there.
    When i export my RCP application as JNLP Project the jar file is created which contains config folder inside it.
    When i download the application using java web start , how can i get the path to config folder placed inside the jar file?
    Will the config folder exists in local cache in my system?
    Help needed.
    -Deepak

    -- This works in CS6:
    tell application "Adobe InDesign CS6"
      set myDocument to active document
      set selectedRectangles to selection of myDocument
      set theGraphicsLink to file path of item link of (graphic 1 of (item 1 of selectedRectangles))
    --> "Macintosh HD:folder/folder/filename.tif"
    end tell

  • How to get the path of local folder in native services in windows phone 8.1 ?

    I used to get the path of local folder path in managed code by following -Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;But now I need to get the local folder path in native services .Please help me out ?

    What do you mean by "native services"? Windows.ApplicationData.Lo alFolder is the way to access the local folder.

  • How to get the path of the folder?

    hello everybody,
    I want to retrive the path of folder. how can i do? i used File I/O > Adv file fun > File dialog and set the file dialog property to "Folder". but I cannot get the path included with folder name. Can somebody help me? thanks in advance..

    Did you select "File or Folder" for the file dialog?
    and
    Did you click on the Current Folder button when selecting the folder?
    R
    Message Edited by JoeLabView on 09-03-2008 07:56 AM
    Attachments:
    fileFolder.PNG ‏11 KB
    currentFolder.PNG ‏6 KB

  • How to get the system32 folder path in java?

    how to get the system32 folder path in windows using java code?

    Zstar Electronic Co.Ltd, Wholesaler of fire cards for DS/NDSL/NDSi, Provide R4, R4i, DStt, iEDGE, AK2i,M3,M3i,N5
    www.zstar.hk

  • Probelm in getting absolute path of the application folder?

    I have problem in getting the absolute path of the application folder.
    I wriiten the following line in my action class:
    String absPath = getServlet().getServletContext().getRealPath("/");
    when i run my application 'DTH' in Tomcat server, I am getting correct path :
    C:\Tomcat\jakarta-tomcat-5.0.25\webapps\DTH
    But when i run this application in weblogic server, I am getting null value for the above line.
    Can any one help me in this?

    public java.lang.String getRealPath(java.lang.String path)
    This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive).
    so, getRealPath() might not be a very good approach because of its different behavior when used from a war or exploded application.
    What you could do is:
    1. pass the path as a parameter inside web.xml (config files, log files etc)
    2. For dynamic lookup of files you could make use of ClassLoader.getResource().
    Hope it helps.

  • How to get KD Folder path

    Hi,
    How to get the full path for a given folder ID in KD ?
    I am using Java IDK 5.3
    Looking for a method like this:
    String fullPath = getFolderPath(200);
    Thanks.

    Besides, the HTML input type="file" lets the client choose a file to upload and it only sends the file contents along the request body from the client to the server. I have reread your question over three times, but I really, really don't see any relation between that HTML code line and your actual problem. Aren't you confusing the client-server relation and the concepts behind it?
    At least I can tell you that you can't get the folder path in the server side (as asked in the topic subject), although some browsers (e.g. IE) will do this, but this is faulty and you shouldn't rely on this. Just obtain the file contents from the request body. There are parsers for this as well, such as Apache Commons FileUpload.

  • Get folder Item using folder Path

    Hi,,
    I know the folder path = /globalsite/F1/Lib1
    How to get the Item object of this folder? can you please post code for this.

    http://download-west.oracle.com/docs/cd/B32119_01/doc/contentdb.1012/b31408/oracle/ifs/fdk/FileManager.html#resolvePath_java_lang_String__oracle_ifs_fdk_AttributeRequest___
    String path = "/globalsite/F1/Lib1";
    FileManager fm = ...
    AttributeRequest[] requestedAttributes = null;
    Item folder = fm.resolvePath(path, requestedAttributes);
    System.out.println(folder.getName());

  • How to get crawler destination folder path through api

    with following code i am getting crawler folder source path
    com.plumtree.openfoundation.util.IXPPropertyBag propertyBag = oPTCrawler.GetStartLocation();
                   String oldFolder = propertyBag.ReadAsString("PTC_UNIQUE");
    how to get the destination folder path ?
    any help appreciated

    i would like to get the values from PT_TAX_DESTFOLDERS
    <A N="PT_TAX_DESTFOLDERS"><I N="DIMS">1</I><I N="MAX0">0</I><I N="0">1324</I></A>
    1324 being the folder id
    when trying
    com.plumtree.openfoundation.util.IXPPropertyBag propertyBag = oPTCrawler.GetStartLocation();
                   Object[][] propertyBags = (Object[][])propertyBag.ReadAsObject1DArray("PT_TAX_DESTFOLDERS");
    i am getting null

Maybe you are looking for

  • How do you strip out certain groups of characters from a String variable

    for exapmle... String date = "11-Feb-2005"; String day; String month; String year; how would you strip out '11' from date to assign it to 'day', and 'Feb' to assign it to 'month' and '2005' to assign it to 'year'. in my program the variable 'date' wi

  • Not able to safely remove USB drive while Labview is open

    To all the Gurus, I am using LabView 8.5 and have made an Application which requires user to download data from USB drive/stick. So when VI runs user asked to select a .TXT file from USB to download. Here whole operation completes as desired. ONLY PR

  • How can I fix this wrong script?

    A- Using a script I polpulate filemaker pro with a number of emails One fo the fields (Attachments) tells the path of the attachment. This perfectly working Applescript allows me to copy the Attachments to a folder different from the Mail folder wher

  • PDF with QTP

    Hi, I am searching for PDF automation, basically we have tables with data and other texts to be validated against app. Can we do the same through - 1)QTP with some plug in 2)UFT Plugins options which i read in forums are - APTT, Adobe SDK, acroQTP Ca

  • Error establishing socket. Address already in use

    Running CFMX 6.1 on Win2k3, I just recently started getting these errors from connections to one of our SQLServer database servers (2000, enterprise): quote: Error Executing Database Query.[Macromedia][SQLServer JDBC Driver]Error establishing socket.