Forms 6i: how to get the UNC path? SOLVED

Anyone know how to get the UNC path of in Oracle Forms 6i

For example, if the user enters an output file:
j:\Data.txt

How I translated that UNC path:
\\serv-123\cfs\data.txt

Basically, I need to pass the UNC path to a regular DB procedure that later would be to copy an output file at the location specified by the user. "J:" being a network drive mapped, the database server would not be able to copy the file.

Thank you
Jim

It's perhaps easier: read the registry using WIN_API_ENVIRONMENT. READ_REGISTRY. The key is HKEY_CURRENT_USER\NETWORK\\RemotePath.

Tags: Oracle Development

Similar Questions

  • How to get the full path of the image open in a filter plugin file?

    Hello

    How to get the full path of the current file, including the directory, the file name with the extension. I need information to download the file on a webserver for a plugin. I found an example that can get the name of the document (title property) but without extension and directory. How can they?

    James

    There is no way to get the full path of the active document in a plug-in filter. A plugin automation has access to this information and the file format plug-ins.

  • How to get the default path of the data of a table space file

    I used below the sql statement to create a table space:

    CREATE A TABLESPACE DATAFILE AAA BBB SIZE 10 M AUTOEXTEND OFF...

    Notice, I do not give a full path instead of a file name, and then ask questions relevant to tables

    get the full path of the data file, assume that it's path below:

    d:\oracle\...\BBB

    So I don't think that there is a default path that oracle can use it to create the data file. My question

    is how to get this default path before creating a table space.

    Thank you very much.

    Hello

    I did similar simulations for you, then it could be seen easily:

    SQL > Show parameter db_create_file_dest

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_create_file_dest chain

    SQL > SELECT NAME, VALUE OF V$ PARAMETER

    2 where lower (name) = "db_create_file_dest;

    NAME

    --------------------------------------------------------------------------------

    VALUE

    --------------------------------------------------------------------------------

    db_create_file_dest

    It has the value NULL. Then where my datafile is going?

    SQL > create tablespace TEST datafile 'test01.dbf' size 10 M;

    Created tablespace.

    SQL > select file_name

    2 of dba_data_files

    3 where nom_tablespace = 'TEST ';

    FILE_NAME

    --------------------------------------------------------------------------------

    /U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf

    When you check the alert logs, it will not show you the location of the data file. It will tell you what exactly you ran.

    ..

    ..

    Completed: drop tablespace test whose content and data files

    create tablespace datafile 'test01.dbf' size 10 M TEST

    Completed: create tablespace TEST datafile 'test01.dbf' size 10 M

    ..

    ..

    You can not SQL user * more? Well, I would say that, when you run the CREATE TABLESPACE command, is where you run the command:

    SQL > select file_name

    2 of dba_data_files

    3 where nom_tablespace = 'TEST ';

    FILE_NAME

    --------------------------------------------------------------------------------

    /U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf


    So, you should get the location of your data file. Alternatively, you can run the query in the parameter $ v so that you know your default data file location.

    I hope this helps.

    Thank you.

    Kind regards

    Gaetan

  • How to get the absolute path to a file in photoshop extended?

    Hello

    I try to send a file via an entry inside an extension of Photoshop. But how can I get the absolute path to this file inside the computer?

    Thanks in advance

    I don't know what you mean by sending a file. Do you want to open a file in PS or do I have to declare the path for support for the extension file? With javascript, you must define a variable. In Win it should look like:

    var file = new File('/c/images/myfile.psd');
    

    or

    var myScript = new File(app.path + '/Presets/Scripts/myJavascript.jsx');
    
  • How to get the full path of the af:inputFile component

    Hello

    I use af:inputFile component in my application to download an Excel file and get the data from the file.

    From the component, I could get only the file name.and not the full path to the file.

    So, I am unable to access the file to extract the data from it.

    Is it possible to get the full path of the file to access to retrieve the data from it?

    Data or data streams is only valid in the same request. Once you navigate, the stream is closed and you get nothing if you try to read it. You need to download the file on the first train in the temporary location (Tip: search ;) File.createTempFile ("temp-file-name", ".tmp") and put the file name and the path to your beans.)

    Timo

  • How to get the Page Path in Webcenter at run time

    Hi all

    I want to get the path to the page of the current page which is consulted by the user at run time (rather, in the method of TF activity)... This path of the page will get the def page and do some operations above.

    We tried to get it from the context of Navigation, but node.path returns null.

    Guidance on how I can get the computer?

    Kind regards

    Siddharth

    SID,

    You can use the EL #{pageDocBean.pagePath} for the path of the page.

    K

  • How to get the full path using HTP. PRINT ("<" input type = "file")...

    Hello everyone,

    I'm working on downloading the page file to another using the package HTP, but whenever I submit the form, it takes only the file name without the full path.
    for example:
    If I sent 'c:\dir\a.txt', the other page receives the parameter file as 'a.txt ".


    the code is here


    Download of the PROCEDURE (appno in varchar2, wsct in varchar2) AS



    l_real_name VARCHAR2 (1000);




    BEGIN




    HTP.htmlopen;
    HTP.headopen;
    HTP.title ("Test Upload'");
    HTP.headclose;
    HTP.bodyopen;
    HTP.header (1, 'Test Upload');
    HTP.print ('< form action = "https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method = "get" >');
    HTP.print (' download file: < input type = "file" name = "file" >)
    ');
    HTP.print ('< input type = "submit" value = "Upload" >');
    HTP.print ('< activated >');
    HTP.bodyclose;
    HTP.htmlclose;


    Download END;

    the other page see so

    file is "water lilies.jpg".

    Thank you

    Published by: dtabed on March 30, 2011 01:02

    For Internet Explorer 8 and later versions, you must set a security setting to get the full qualified path: see http://msdn.microsoft.com/en-us/library/ms535128.aspx.

    For other browsers, there could be a similar setting.

  • How to get the full path of the appellant VI?

    LabVIEW 8.x broken my code.  I used to be able to refer to a VI by name, and it now wants the full path.  Unfortunately, "call chain.vi" returns only the name.  Does anyone know how to refer to the vi (its full path) that calls a particular sub - VI, of the Subvi?  It was the second element of the array string of "call chain.vi".

    I use LV8.6.

    Thank you

    Jeremy

    Hi Jeremy,.

    I'm not sure 8.6, but in 8.5.1 you can always use a string containing the name of VI to open a reference of a VI in memory.

    Does not allow a constant way with just the name of VI well.

    Daniel

  • How to get the full path without a docs «~»

    My file is here:

    'C:\Users\first.last\Desktop\PS_Tester\SRC\Work.psd '.

    Note that doc is on the desktop (Windows).

    Copy the following code:

    var Vc_v7 = activeDocument.fullName;

    Alert (myTest);

    Returns:

    "~ / Desktop/PS_Tester/SRC/Work.psd".

    I would like to and wait until he returns the real path with the 'C:\Users\first.last' and not the «~»

    When I pass the ~ path to another app folly occurs.

    Or y at - it a way to get that represents the tilde?

    Just a slight correction, for the alert. using a forward slash is not now with what you're going to get back, that will be all the backslashes normal. You need a double backslash:

    alert(MyTest+"\\"+app.activeDocument.name);
    
  • How to get the current path of file (jsx) running?

    Hello.

    I want to be saved in the path of the current running jsx file.

    Is there a way?

    Thank you.

    Hi, is it ok for you?

    It seems "app.activeScript" or "$.filename ' is what you wanted.

    #target indesign
    try {
      // not active in ESTK
      // return script path if run from ScriptPanel
      alert(app.activeScript);
    }
    catch(e){
      alert(e);
    }
    
    // return bridgetalk if run with double clicking jsx
    // return script path if run from ScriptPanel
    alert($.fileName);
    
    alert($.includePath);
    

    Thank you

    mg.

  • How to get the default path for the data of the user to /store directory?

    I am writing an app that will create files on the device to the user.  These are not files that the user will want to transfer autour so I would store on /store instead of on the SD card.  I was wondering if there is a sort of. getUsersDirectoryPath() API which tells me that the way I should use to store these files.  That way if something changes on a later version of the operating system I don't have borken my application to hardcode it.

    any information would be appreciated,

    -Henry

    This can help you make your choice...  On OS 4.6 and higher, the user's home directory is exposed as a drive letter on the desk when the device is connected via USB.  This makes it unavailable for your application.   I use the persistent store specifically for this reason.

  • How to get the Subvi (the virtual path is in .exe) reference in Run Time System

    Hello world

    The problem is how to get the reference of the Sub - VI in run time system, when the Subvi is in .exe after construction.

    More details:

    Top of page vi called the Subvi dynamically, so that the Subvi is always included, and the source object is the application.exe.

    After the above configuration, the Sub - VI will be the application.exe. For example, the path of Subvi est...\application.exe\SubVI.vi

    So, how to get the reference of the Subvi in Run Time System?

    I can't do it when you use 'open reference VI' with le...\application.exe\SubVI.vi path in the run time system.

    In fact, I can create a file to include the Subvi, rather than build the Subvi in application.exe, then I can get the convenintly reference. But this isn't my favourate average.

    Thank you

    chenyin

    That is the problem. Call a Subvi dynamic means users could change, but it is also very attractive.

    The dynamic call should be used in a user control, but some parade can avoid problems.

    It depends on why you use dynamic calls...-online 2 main ways:

    -Dynamic call are used to maintain a scalable framework for the code without acting on the executable file-online a single VI distribution managed by the administrator/developer

    -Dynamic call are used to provide a collection of "external" characteristic that could be enriched by the administrator/developer. For example, you provide your customers a set of selectable custom signal filters in the executable.

    In 2 cases, you are only able to assess the skills of the users to know if there is a risk of damage, if there is a change.

    So to stay only master a parade might be to provide dynamic VI without a schema, but with the problem of maintenance, since no in-place editing and more attention to manage distribution.

    Another way is to hide the actual distribution to user-online call dynamic VI but it without name as *.vi but others (a repellent name as system of OS name ) or simply without extension in order to attract not user... but that's debatable...

    Another more difficult but more secure method is to create a consistency check before your routine (version, user, modified date,...)

  • How to get the path (using &lt; input type = "file" / &gt;)

    Hello world

    I create a HTML form that has an entry of type = "file".  This will give you a dialog box browse for your user to search for a file on the operating system.

    And my code:

    function handleFileSelectForMyShop (evt)
    {
    var blnFileReaderSupported = false;

    Try
    {

    Debug.log ("handleFileSelect", "start handleFileSelect");
    reader of var = new FileReader();
    blnFileReaderSupported = true;
    var files = evt.target.files;
    var size = files.length;

    Debug.log ("handleFileSelect", "handleFileSelect # selected files:" + size, debug.info);

    for (var i = 0; i)< size;="">
    {
    Debug.log ("handleFileSelect", "in the handleFileSelect analysis the index file" + i, debug.info ");
    var f = files [i];
    Reader.OnLoad = (function (theFile)
    {
    Debug.log ("handleFileSelect", "start reader.onload", debug.info);
    return Function
    {
    Debug.log ("handleFileSelect", "start Function", debug.info);

    Debug.log ("handleFileSelect", "reading file" + theFile.name + "(" + theFile.size + "") "" + theFile.type, debug.info);

    If (theFile.type.match ('image.*')) {}
    var path = e.target.result;
    alert (path);
    create the path

    } else {}
    jAlert ("Please select photo!', 'Error'");
    }
    };
    })(f);

    If ((f.type.match ('image.*')) |) (f.type.match ('audio.*')) | (f.type.match ('video.*')))
    {
    Debug.log ("handleFileSelect", "in handleFileSelect call reader.readAsDataURL for type" + f.type, debug.info);
    Read in the media file in the form of a data URL.
    reader.readAsDataURL (f);
    }
    }

    Debug.log ("handleFileSelect", "Complete", debug.info);
    }
    {} catch (e)
    Debug.log ("handleFileSelect", e, debug.exception);
    If (! blnFileReaderSupported)
    {
    Alert('Error.) The FileReader API is not supported. ") ;
    }
    }
    }

    function doPageLoad()
    {
    Try
    {
    ELE var = document.getElementById ('txtFile_staffInfo');
    If (ele)
    {
    ele.addEventListener ('change', handleFileSelectForMyShop, false);
    }
    imgSelectPictureClick = 0;
    }
    {} catch (e)
    Debug.log ("doPageLoad", e, debug.exception);
    }
    }

    window.addEventListener ("load", doPageLoad, false);

    Note: And alert (path) leads to a Base64 string! It is not a path of the image that I browse a Spain file on the operating system.

    I want to have a full path of the file. For example: file:///accounts/1000/appdata/WebWorksAppTemplate.testa3NBcHBUZW1wbGF0ZSAgICA/shared/camera/image01.jpg

    I hope to see your reply soon!

    Thank you and best regards,

    A Pham

    A Pham

    I think that you can not get the absolute path of a file due to browser security, when you use the

    It's something that you need probably a PlayBook extension for.

  • ADF: How to get the path of the file when you use component InputFile

    Hi all

    I use jdeveloper 11.1.1.5.0 version.

    in my case, I created program Mail Client mail where I used the ADF InputFile component for attach file mail.

    but problem is this return path only component InputFile from the file (only the filename get)

    and in my mailer class DataSource uses the full path name of file access.

    UploadedFile uploadfile=(UploadedFile) actionEvent.getNewValue();
         String fname= uploadfile.getFilename();//this line only get file name.
    

    so, how can I get the full path using adf InputFile component or any other way to respond to my request.

    Thank you

    Manish

    Try this (I did not, so I can't promise it will work):

    MimeBodyPart messageBodyPart = new MimeBodyPart(uploadFile.getInputStream());
    messageBodyPart .setFileName(uploadFile.getFilename());
    messageBodyPart.setContent(multipart);
    

    It does use the inputStream from the downloaded file as the content of the file attached. You shouldn't need a full path, since you're not going to use a file object to provide the content.  And it shouldn't be necessary to define the DataHandler.

    But if that doesn't work, I go back to my first answer.  Use uploadFile.getInputStream () to get the inputStream from the downloaded file, create an outputStream to write the file to the file system of the application server.  Then you have a file with a known path that you can subscribe to the DataHandler.  You can delete the file when you're done with him.

  • How to get the extension installation path?

    Hello

    This is the right forum to see if the CEP for Photoshop CC extensions 2014? If not, please be kind enough to point me to the correct forum.

    If so, how can I get the full path to the Directory installed extension?

    for example: C:\Program Files (x 86) \Common Files\Adobe\CEP\extensions\com.example.extension

    I tried to get ExtendScript using Folder.commonFiles and adding the rest of the way.

    But it gives C:\Program Files\Common Files, even if our extension is in C:\Program Files (x 86) \Common Files.

    Thank you!

    Use CSInterface. There are several constants that have different paths associated with them:

    CEP-resources/CSInterface.js to master · Adobe-CEP/CEP-Resources · GitHub

Maybe you are looking for

  • I folded my macbook air high high of breakage to the left apple replaces?

    If its kind of a long story... So, I was sleeping in the middle of the night and my cat decides to push my my desktop mac book air on the floor, and when I woke up the next day the screen and things worked very well but the upper left corner is folde

  • Computer HP laptop 15-f010wm: BIOS password laptop laptop 15-f010wm

    My laptop HP (15-f010wm) got locked with a password of bios administrator required to perform priming. Since I do not know the password I need an unlock code to enter. The message "System disabled" has code 59041206.  Thanks for any help

  • Photos - where are the originals?

    I just started to try to tame the Photos (not easy after the habit of iPhotos events). IPhoto migration was made some time ago, but I went to use iPhoto for a few months. So, in the last two days I exported the latest events in iPhoto to records as e

  • I just reinstalled my computer about two weeks

    Okay I've reinstalled my computer about two weeks and I I'm a player, I can't play the games I used to play before I reinstalled it and I actually reinstalled to remove a whole bunch of garbage and I hope that it would help me to play with less offse

  • Router SSID not found

    Hello world. I tried to connect my new printer (ENVY 4500) to my wifi router. When the printer do a scan, it can't find my wifi router. My router has two SSID, one public and one private. The printer can see one public, which means that there is no p