Call COPY FILES window dialog from FORMS 6i

Hello.
I'm working with FORMS 6i and I need to make script witch will copy all files from CD to HARD DRIVE ...
Now I'm using this command to call XCOPY DOS command and this working great...
Win_Api_Shell.WinExec( 'cmd.exe /c xcopy /y /e '||xcopy_sting, WIN_API.SW_SHOWNORMAL, false );
BUT....
I have FROM & TO destinations parameters and I want to use windows copy dialog witch will be opened by button press automaticaly..
( I mean on SMALL COPY DIALOG WINDOW when you pressing CTRL+C)
TNX

You can use a host command to perform the copy.
declare
ls varchar2(299);
begin
ls :='copy '|| source dir || destination dir ;
Host(ls);
End;
And you can create 2 text items in the form and use the get_file or win_api_dialog to get the directory name.
Use it in the above
Rajesh ALex

Similar Messages

  • Calling Windows File Open Dialog from Forms

    Has anyone used the File Open Dialog of MS-Windows from within
    forms? How do you invoke it and how do you pass arguements (in
    and out) to communicate with it?

    GET_FILE_NAME built-in
    Description
    Displays the standard open file dialog box where the user can
    select an existing file or specify a new file.
    Syntax
    FUNCTION GET_FILE_NAME
    (directory_name VARCHAR2,
    file_name VARCHAR2,
    file_filter VARCHAR2,
    message VARCHAR2,
    dialog_type NUMBER,
    select_file BOOLEAN;
    Built-in Type unrestricted function
    Returns VARCHAR2
    Enter Query Mode yes
    Parameters
    directory_name     
    Specifies the name of the directory containing the file you want
    to open. The default value is NULL. If directory_name is NULL,
    subsequent invocations of the dialog may open the last directory
    visited.
    file_name     
    Specifies the name of the file you want to open. The default
    value is NULL.
    file_filter     
    Specifies that only particular files be shown. The default
    value is NULL. File filters take on different forms, and
    currently are ignored on the motif and character mode
    platforms. On Windows, they take the form of Write Files
    (*.WRI)|*.WRI| defaulting to All Files (*.*)|*.*| if NULL.
    On the Macintosh the attribute currently accepts a string such
    as Text.
    message     
    Specifies the type of file that is being selected. The default
    value is NULL.
    dialog_type     
    Specifies the intended dialog to OPEN_FILE or SAVE_FILE. The
    default value is OPEN_FILE.
    select_file     
    Specifies whether the user is selecting files or directories.
    The default value is TRUE. If dialog_type is set to SAVE_FILE,
    select_file is internally set to TRUE.
    ** Built-in: GET_FILE_NAME
    ** Example: Can get an image of type TIFF.
    DECLARE
    filename VARCHAR2(256)
    BEGIN
    filename := GET_FILE_NAME(File_Filter=> 'TIFF Files (*.tif)
    |*.tif|');
    READ_IMAGE_FILE(filename, 'TIFF', 'block5.imagefld);
    END;

  • How Do I Copy File Names & Folders From A Hard Drive To A Word Document?

    Hi Gang:
    This may sound silly but I am having a herd time with the following - seemingly simple task.
    I have data DVD-Rs with audio files organized into folders. Each folder contains audio files related to the folder name.
    I would like to copy the file names and folders from a DVD-R and paste them into a MS Word file. I am just looking to get a listing of files as they appear on the DVD-Rs in their folders.
    The problem is that when I copy and paste, the order changes (seemingly randomly) and the file names are no longer under the folder names. In fact, the whole thing looks to be really random.
    Anybody know how to copy file/folder names from a hard drive or DVD-R to a word document and retain the file/folder structure?
    Thanks!
    LAHD

    There is an even easier method with no Terminal magic required. In the Finder, select all the files you want the names of, press Command-C, switch to Word and press Command-V. Poof, your done.
    If you view the DVD in List VIew, you can expand the folders you want the files for, then select all the files (and their folders if you want them too) and then do the Copy/Paste thing.
    Message was edited by: petrock

  • Calling File/Windows Explorer from EBS 12i Form.

    Hello All,
    I am using BLOB store as SECUREFILE and everything is working perfect when called from .NET.
    Now requirement is create a Form (Oracle Form Developer 10g) running under EBS 12i. This Form will allow the user to select a file (from local or network drive) and store in the database.
    I am not sure how to popup Windows Explorer for user to select file in EBS envirnoment.
    Only help I am looking for is "how can I popup windows explorer from EBS for user to select file and send as blob"
    Regards,
    Naseer
    Houston.

    Hi George,
    Does this not work for you:
    ExecuteCommand "c:\file.docx",,cmd_ShellExec
    In my case it opens up word.

  • Calling shared objects in unix from Forms 6i and 10g

    I would like to know how to call shared objects in unix from Froms 6i and 10g. Can anybody help in this regard? Your help is very well appreciated.

    Hi,
    Do you have any 11i instance where those custom forms are used? If yes, you will have to copy those forms from 11i to R12 instance, open the forms using Forms 10g builder, compile it and upload it back to the server.
    Note: 427879.1 - How To Customize And Compile An Application Seeded Form (FMB) Or Library (PLL)?
    Note: 743490.1 - Customization in Oracle Applications
    Note: 563258.1 - How To Upgrade 11i Custom Forms And Reports To R12
    Regards,
    Hussein

  • Copy SapScript Window to another Form?

    Hello,
    is it possible to copy a window from an existing SapScript form to another form (on the same client)?
    If so, how can this be managed?
    Thanks in advance,
      Arne Schultz

    Hi Frnds,
    We can accomplish this task by following below steps:
    1: Go to source window in Script. Click on change editor and make it to New editor then copy    the whole/ ur wish .
    2. Come to Target window (In Some other script) do as like above and paste here.
    Regards
    Yuva Thulasi

  • Downloaded legitimate copy of Windows 7 from Microsoft...

    I know I need to install Windows 7 from Bootcamp. I used to have Vista on it, but have gotten rid of that now. I upgraded to 8 gigs of ram, so now I have to install 64 bit for Windows. No matter how I copy Windows to a dvd to use in Bootcamp, it can't find the dvd. I have seen that there are files from the dvd in Finder. Is it impossible to upload a "copied" dvd, and do I have to wait for Microsoft to mail me their backup? ...or is there something I'm doing wrong?
    Thanks in advance!

    Well, I went and purchased 2 other brands of dvd, but neither one of them are burning, either. That totals 4 different brands. I've reinstalled Windows Vista till I get the Windows 7 dvd in the snailmail. Can't believe I've been through HOURS for absolutely nothing but reinstalling what I had in the first place, only to wait around 3 weeks till I get the actual dvd. Lesson learned. Get the original software straight from the manufacturer in the first place!
    Anyway, has anyone else had a problem with burning a dvd, when a cd will burn no problem, and it reads dvds and cds no problem?

  • Calling Windows API From Forms.

    For example, how can i call the MessageBoxA function from user32.dll whilst working in an Oracle Forms Application.
    Thank you.

    You shall have to use the WEBUTIL_C_API.Invoke_Int function for this purpose. Please see the following example that Locks the workstation.
    -- IMPORTANT
    -- Be sure to review the following My Oracle Support Note
    -- Doc ID: 285331.1 - "Exception When Calling PASCAL style Function Via WebUTIL_C_API"
    declare
      rc pls_integer;
         f_handle WEBUTIL_C_API.FUNCTIONHANDLE;
         args Webutil_c_api.parameterlist;
         winSysDir varchar2(255) := Client_Win_API_ENVIRONMENT.Get_Windows_Directory || '\system32\';
    --- IMPORTANT ---
    -- WEBUTIL_C_API CURRENTLY ONLY SUPPORTS CALLING C STYLE LIBRARIES, THEREFORE SOME WINDOWS LIBRARIES CANNOT BE CALLED.
    -- ADDITIONALLY, IT IS NOT RECOMMENDED THAT YOU ATTEMPT TO CALL FUNCTIONS WHICH REQUIRE ARGS.
    -- USE EXTREME CAUTION WHEN CALLING WINDOWS APIS.
    -- BE SURE TO THOROUGHLY TEST BEFORE MOVING TO PRODUCTION
    -- LOOK CLOSELY AT BOTH STABILITY AND MEMORY USAGE AS SOME CALLS
    -- MAY RESULT IN THE APPEARANCE OF A MEMORY LEAK.
    -- This call to USER32.DLL will reference the LOCKWORKSTATION function.
    -- If the current OS user does not have a password configured, the workstation may not lock.
    -- The Windows LockWorkStation function requires no args to be passed in.
    -- WebUtil expects something to be passed in. So an empty paramlist will be created.
    begin
    If webutil_clientinfo.get_operating_system LIKE 'Win%' Then          
         f_handle := WEBUTIL_C_API.register_function(winSysDir||'user32.dll','LockWorkStation');
         args := WEBUTIL_C_API.create_parameter_list;          
    If the function succeeds, the return value is nonzero. Because the function executes asynchronously,
    a nonzero return value indicates that the operation has been initiated. It does not indicate whether
    the workstation has been successfully locked.  If the function fails, the return value is zero.
        http://msdn.microsoft.com/en-us/library/aa376875(v=VS.85).aspx
         rc := WEBUTIL_C_API.Invoke_Int(winSysDir||'user32.dll','LockWorkStation',args);     
    End if;
      WEBUTIL_C_API.Destroy_Parameter_List(args);
      WEBUTIL_C_API.Deregister_Function(f_handle);               
      SYNCHRONIZE;
    end;

  • I have a windows vista pc and want to use migration assistant to copy files over. From what I understand, it will copy over my user profile and settings as well. Is there anyway to just copy files?

    Hey everyone, I just bought a new macbook pro 13-inch (late 2011 model) and I want to use migration assistant to copy over my photos, iTunes library, documents, etc. I know this can be done wirelessly or by connecting the two computers by Ethernet cable (windows vista pc --> macbook pro). Which is faster?
    I also have heard that using migration assistant copies over the user file as well and makes it the new one on the mac. I would only like to copy over files, not user settings. How do I do this?
    Thanks!
    P.S. I'm assuming that when my iTunes library is copied, the mp3 files are copied too. Could someone please confirm this?

    http://www.apple.com/support/switch101/
    http://www.macworld.com/article/153952/2010/09/superguide_switchingtoamac.html?l src=nl_mwweek_h_cbstories

  • How to Read the Timestamp of a File on Unix from Form?

    If you have a file located on UNIX operating, what is the best way to read the time stamp (the date that file has been created) of that file from Oracle SQL, SQL*plus, or Developer Forms 6i/9i/10g?

    Thanks Robin for the reply! Your suggestion seems to be good!
    However, We found a solution now! I would like to share with you the way we did, in case anyone out there need the solution:
    In SQL*Plus, we created a Java Source below:
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "FileDate"
    AS
    import java.io.File;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class FileDate {
    public static String GetDate(String strFilePath) {
    String ReturnValue = null;
    if (strFilePath == null || strFilePath.length()==0)
    // do nothing
    else
    File aFile = new File(strFilePath);
    if (aFile.exists())
    long lngTime = aFile.lastModified();
    Date aDate = new Date(lngTime);
    SimpleDateFormat fmtDate =
    new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
    ReturnValue = fmtDate.format(aDate);
    fmtDate = null;
    aDate = null;
    aFile = null;
    return ReturnValue;
    -- Then we created a wrapper to call the Compiled Java above:
    CREATE or REPLACE FUNCTION FileDate_GetDate(FilePath IN STRING)
    RETURN VARCHAR2 IS
    LANGUAGE JAVA
    NAME 'FileDate.GetDate(java.lang.String) return int';
    -- Then we created a database package:
    -- Package Spec:
    PACKAGE sap_dnld AS
    FUNCTION get_file_date2 (s1 varchar2) RETURN VARCHAR2;
    END sap_dnld;
    -- Package Body:
    PACKAGE BODY sap_dnld AS
    FUNCTION get_file_date2( s1 VARCHAR2 )
    RETURN VARCHAR2 AS LANGUAGE JAVA
    NAME 'FileDate.GetDate(java.lang.String) return int';
    END sap_dnld;
    -- Then we tested the whole thing in SQL*Plus:
    set serveroutput on;
    declare
    x varchar2(2000);
    begin
    x := sap_dnld.get_file_date2;
    dbms_output.put_line(x);
    end;
    -- Then we called the function from the package using a procedure from the form:
    PROCEDURE Find_date IS
    BEGIN
    :control.file_date := sap_dnld.get_file_date2('directory1/subdirectory/filename.txt');
    END;

  • Copying files and directories from AIX/UNIX to Client PC in ABAP.

    Hi all,
    Can someone help me. I have to make an ABAP program which copies the J2EE Visual Adminstrator programs from our AIX/UNIX server to the Client PC.
    I have to copy all files and directories in /usr/sap/DXI/DVEBMGS70/j2ee/admin/.  to  D:\j2ee\*.*
    Is it possibly in ABAP? How would you do it?
    Best regards
    Brian Strunge

    Hi,
    try this.
    DATA: lcl_directory TYPE char128,
    constants: c_mask TYPE char9 VALUE ',.,..'.
    lcl_directory = ''/local/data/interface/A28/DM/OUT'. <b>"target directory</b>
    CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    EXPORTING
    directory = lcl_directory
    filemask = c_mask
    IMPORTING
    serverfile = p_f2
    EXCEPTIONS
    canceled_by_user = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE e000(zmm) WITH text-039.
    flg_app = 'X'.
    ENDIF.
    ******************************************************8
    REPORT zdirtest.
    DATA lv_dir TYPE rsmrgstr-path VALUE '/usr/sap/trans/data'. <b>"source directory</b>
    DATA: wa_files TYPE rsfillst,
    it_files LIKE TABLE OF wa_files.
    START-OF-SELECTION.
    CALL FUNCTION 'SUBST_GET_FILE_LIST'
    EXPORTING
    dirname = lv_dir
    filenm = '*'
    TABLES
    file_list = it_files
    EXCEPTIONS
    access_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    WRITE /1 'Error! :-('.
    ELSE.
    LOOP AT it_files INTO wa_files.
    WRITE: /1 wa_files-name,
    wa_files-len.
    ENDLOOP.
    Regards
    Anver

  • How do i copy files and folders from one external harddrive to another on the iMac?

    For some reason when i drag the folder or file that i want to transfer or copy from one external harddrive to another, nothing happens when i drop it on the destination folder or drive. however, when i drag and drop to the desktop or any location on the Imac internal hardrive it works without any issue. The only problem is that i dont want to transfer or copy stuff to the computer. i want to copy it to an external harddrive. please help if your have answers to my question.
    Thanks!

    Check the formatting of the external hard drive. To do that, right click on the drive icon and select Get Info. (Or click once on the drive and type command +i ) The pane includes information about the drive format.
    The drive should be formatted as Mac OS Extended. If it is not, run Disk Utility (App;ications / Utilities) and format the drive.

  • Can't copy files to iDisk from Finder

    Good Day,
    I am trying to copy a file from my desktop to my iDisk. I have shown my iDisk in the Finder Prefs. I have also done Go->iDisk->My iDisk. The iDisk folder shows in the finder with several folders inside it (none of which I created).
    I DO NOT have iDisk sync on.
    When I drag a file from the desktop to the iDisk (10k png file) it takes about 40 seconds to complete the copy. Then the file shows up as a Zero KB file on the iDisk. I have tried several file types and sizes, nothing will copy.
    The Zero Byte files show up in the Mobile Me web interface and are Zero Bytes there as well.
    Thanks in advance for the help.
    David

    Uncle Davy wrote:
    Apparently iDisk sync has to be turned on. You can't use it as a stand alone cloud disk...
    Yes, you should be able to, just stay out of the special folders.
    It will take a while to copy things, of course, but you should be able to just drag things into, say, the Desktop folder there, as you would any other file.
    It does sometimes take a few seconds for the copy to complete, and the actual size to show up.
    Try a small test document, say one made with Text Edit.

  • Calling report with parameter screen from form using frmrwinteg

    Hi,
         I am calling a report with a parameter screen from a form and am using the frmrwinteg bean. This works fine on our test application server but, when moved onto our production application server, the database logon screen is presented after pressing the submit button on the parameter screen. The cause of the problem seems to be the html generated to simulate the parameter screen. The html on the test application server contains a BASE tag in the HEAD section with an href starting "http:/servername.companyname.com". However, the same tag in the html generated on the production application server is missing the ".companyname.com", causing the cookie produced by the frmrwinteg bean to not be found. Does anyone know how the BASE href tag is generated and what I need to change to get the correct BASE href value? I am using Forms/Reports 10g R2 and Application Server 10.1.2.
    Cheers.....

    Appendix "A" of this document describes how cookie_domain works:
    http://otn.oracle.com/products/forms/pdf/10g/frmwebshowdoc_rep.pdf

  • Copying files into lightroom from iPhoto

    I wanted to get my photos from iPhoto into Lightroom and so copied them all to a folder on the desktop
    but it seems I have to keep them on the desktop otherwise Lightroom does not recognise them. Can somebody advise as to where they
    should be placed or how I should have done it? thanks

    LightRoom support is not done here - as to iPhoto select the photos you want to move to LR and export (usually as Kind is original) to a desktop folder - Exporting From iPhoto
    From there on you need LR support
    LN

Maybe you are looking for

  • Monitor setup for Premier CS5?

    I will be building a stand alone system for Premiere CS5 to edit HDV tape. I'm a graphic designer by trade and video editing is completely new to me. In addition to building a monster system I'm not sure what to do for monitors. Is it pretty standard

  • Functional Specification on SAP MM-Purchasing

    Hi Gurus, It will be great, if someone forwards me a link or some website which will teach me how to write functional specifications effectively, with some examples of func specs. Specially, func specs on SAP MM-Purchasing will be really great. Thank

  • Best Practice to Migrate from XI R2 to 2008

    Hello, We currently have a server which is running Crystal Reports Server XI R2.  I have a new server which I have installed Crystal Reports 2008 on and want to migrate our reports to that server.  Ideally though, I want to get everything working and

  • Is there a code to place an "enter" (new line)?

    I would like to place an "enter" in CRM 2007 making a survey. So something that looks like this: - piece of text - another piece of text - yet another one Except, when I type the text as it is written above, the result is this (I placed blanks in bet

  • Invoice / Credit Memo / Sub Credit/Subs debit

    Dear experts , I want to differentiate the following : 1. Invoice document 2. Credit Memo document 3. Subsequent credit document 4. Subsequent debit document Is it possible to have a different document type for each of the above while enetering an in