Client_host cmd problem

Hello.
I want to open excel file on client. File is on another computer. I open the file with clien_host and cmd. The problem is, that cmd window stays opened.
I open file like:
CLIENT_HOST('cmd /c ' || LC$Target);
LC$Target is like //Linux_comp/dir/file.xls.
If i run this, excel starts but the cmd window stays on. When i close excel, cmd closes.
How can i solve this problem?
If i run file like
CLIENT_HOST('cmd /c start c:\Dir\Dir\Excel.exe ' || LC$Target);
cmd window closes after excel is started.
Why is that?
I need 1st version, because not every user has the same excel path.
Any help?
Thanks.

Hello,
with the START() command, there is no need to indicates the path to the program (excel.exe). Just put the file name (.xls) and windows will start the associated programe for you.
Francois

Similar Messages

  • CLIENT_HOST('cmd /c MD ' || ' C:\temp') doesn't work  if directory exists

    hi,
    With Forms 9.0.4 and webutil
    Using the next sentence
    CLIENT_HOST('cmd /c MD ' || ' C:\temp');
    if the directory c:\temp exists, form doesn't respond.

    "The Client_Host() function returns the host comand return code" - What kind of function? Where did you find it? I found only the procedure with the same name. In WebUtil.
    I have a problem.
    I have a code
    FUNCTION host_start_iexplore(url in varchar2) RETURN boolean is
         rez boolean:=true;
    BEGIN
      Client_Host('cmd /c start iexplore ' || url);
      display_mess('rez = true');
      return true;
      Exception
       when form_trigger_failure then
           rez:=false;
           display_mess('rez = flase. in "form_trigger_failure"');
              return false;
    END;However, I have: IE is run correctly, and "Exception when form_trigger_failure" triggered...

  • Timeout when using CLIENT_HOST('cmd /c start/wait winword.exe) in FORMS10g

    Hi, what to do      to prevent loss connection in forms / AS10g / Webutil?
    we have in forms 10g / AS 10g using webutil following command to edit a word-document and save it afterwards:
    CLIENT_HOST('cmd /c start /wait winword.exe '||'"'||pLocal_file_name||'"');
    it works well for a short time of maybe 1 minute,
    but when user works a longer time, the connection to AS-Server is loss.
    what to do to solve problem ?
    it is a Problem in FORMS or in WebUtil ?
    set FORMS_TIMEOUT / higher ?
    if so, where to set it, in the forms-module or in default.DEV of AS ?
    or do i have use enable_redirect_on_timeout, how ?
    Thanks
    Norbert

    Hello,
    use the WEBUTIL_HOST.blocking() function instead as follow:
    Declare
       LC$Cmd     Varchar2(256) ;
       Ret        WEBUTIL_HOST.PROCESS_ID ;
       LN$Result  Pls_Integer ;
       LC$FicName Varchar2(128) := Name_In( ‘BLOB_TABLE.DOC_NAME’ ) ;
    Begin
       LC$Cmd := 'cmd /c start "" /WAIT "' || LC$FicName || '"' ;
       Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
       LN$Result := WEBUTIL_HOST.Get_return_Code( Ret ) ;
    End ;Francois

  • Client_host('cmd  edit c:\temp\file_print.txt'); not working with Sun JRE6

    Hi,
    I am working on Oracle forms10g ( 10.1.2.0) with Sun JRE6 (Using JRE version 1.6.0_31-b05) which is working fine. the only problem is, when I use edit command, its not working nor show any error. Command I am using (to display the text file in command window) - client_host('cmd edit c:\temp\file_print.txt'); . the same command working fine if I switch to JInitiator (1.3).
    help would be greatly appreciated.
    Thank you.
    Alok

    In the [webutil] section of the formsweb.cfg, did you change the baseHTMLjinitiator to point to webutiljpi.htm?
    not working nor show any error. Not all errors will be reported through the Forms UI. For java related errors you have to look at the Java Console. Please check the Java Console and post any errors listed there.
    the same command working fine if I switch to JInitiator (1.3).This tells me the problem is most likely a configuration issue. Please list what steps you took to congifure your system to use the JRE over the default Oracle Jinitiator.
    Craig...

  • Problem with client_host('cmd /c c:\vbc.bat')

    Hi forum,
    I am working on Oracle 9i Release 2 Database on AIX 5L based operation system with Oracle 10g AS version 9.0.4 On Windows 2000 Advanced Server and webutil 1.0.6 package, Oracle 10g DS 9.0.4.0.19 for forms developement.
    I have developed a form which creates a .txt file in the DEFAULT O/S DIRECTORY
    and creats a batch file, which contains a single like command as shown in the subject, It is working fine in our testing environment, but it is not working in Production environment. Could you please help me out in this regard, or any work around for this.

    Dear Francosis,
    There is no much difference in Test and Production environment. Test Database is working on same Oracle Database Release but on Windows Platform, where the Production environment works on AIX platform. The Application server is running on Windows 2K Advanced Server in both.
    I have created a virtual printer in test environment. After invoking the print command from the application, I am monitoring the job queue of the virtual printer, By the status of the printer's job queue, I came to a conclusion that it is invoking the print job. But, this is not the scenario in production environment.
    Please post any suggestions or workarounds for this.
    Thanks,
    Kamesh

  • Simple CMD Problem... Please help!

    All I want to do is have my GUI .java program compile compile .java code to .class code from a UI form the fill out.
    Process p = Runtime.getRuntime().exec("javac theirJavaFileName.java");
    Whenever I run this, I simply get:
    java.io.IOException: Cannot run program "javac theirJavaFileName.java" CreateProcess error=2, The system cannot find the file specified
    When I run my commands (which are a little more complex in my program), the code compiles fine through CMD. What could be the problem?
    Thanks!
    PS all variables are defined correctly: My code looks like this:
    Process p = Runtime.getRuntime().exec("javac -classpath \"" + fileSource + "\" \"" + file.getAbsolutePath() +"\"");
    ToXSiK

    Hello,
    I see you have your problem sorted out.
    As a support "tutorial", in order to understand the advices that you were given, I recommend you read the whole "mother of all Runtime.exec()" articles: http://www.javaworld.com/jw-12-2000/jw-1229-traps.html?page=1
    Do insist reading it past the first page, you'll see your exact problem (and more) described, along with explanations as to why.
    Process p = Runtime.getRuntime().exec("javac theirJavaFileName.java");And please learn how to use tags.
    Regards,
        J.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Plannind Installtool.cmd problem

    Hi,
    When I click on InstallTool it runs fine and says All pre-requisites are met. But it hangs at cmd promt itself.
    I am using Windows Server 2003.
    I am trying to install essbase, planning,FR.
    I have extracted and arrange the folders and files in C:/ drive in local system.
    The cmd promt has the following information:
    Installer Version: 11.1.1.3.0.3663
    Checking if the file exist: C:\epm11\assemblies... Ok
    Checking if the file exist: C:\epm11\help... Ok
    Checking if the file exist: C:\epm11\jre... Ok
    Checking if the file exist: C:\epm11\oui... Ok
    Checking if the file exist: C:\epm11\setup.jar... Ok
    Check assemblies:
    C:\epm11\assemblies\biplus_product_reporting_client... Not exists
    C:\epm11\assemblies\biplus_financial_reporting_services\9.5.0.0\assembly.dat
    ... Ok
    C:\epm11\assemblies\biplus_financial_reporting_client\9.5.0.0\assembly.dat..
    . Ok
    C:\epm11\assemblies\biplus_interactive_reporting_services... Not exists
    C:\epm11\assemblies\tools\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\hpm... Not exists
    C:\epm11\assemblies\biplus_financial_reporting_webapp\9.5.0.0\assembly.dat..
    . Ok
    C:\epm11\assemblies\hfm_client... Not exists
    C:\epm11\assemblies\biplus_migration_utility\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\essbaseAddins\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_dds... Not exists
    C:\epm11\assemblies\hfm_common... Not exists
    C:\epm11\assemblies\analytic_services_provider_webapp\9.5.0.0\assembly.dat..
    . Ok
    C:\epm11\assemblies\essbase_administration_services_client\9.5.0.0\assembly.
    dat... Ok
    C:\epm11\assemblies\planning\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_product_reporting_services... Not exists
    C:\epm11\assemblies\svchve_client\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\hfm_services... Not exists
    C:\epm11\assemblies\essbase_integration_services\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\offlinePlanning\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\aif... Not exists
    C:\epm11\assemblies\calc\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\essbase_services\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\bpm_architect_datasync\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\workspace_configlibs\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\essbase_smartsearch_webapp\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\bpm_architect_batch_client\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\productCommonComponents\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\hsf_server... Not exists
    C:\epm11\assemblies\hps_webapp... Not exists
    C:\epm11\assemblies\bpm_architect_webapp\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_product_reporting_common... Not exists
    C:\epm11\assemblies\fdm... Not exists
    C:\epm11\assemblies\hsf_client... Not exists
    C:\epm11\assemblies\biplus_financial_reporting_common\9.5.0.0\assembly.dat..
    . Ok
    C:\epm11\assemblies\bpm_architect_generator\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_webanalysis_webapp... Not exists
    C:\epm11\assemblies\biplus_workspace_webapp\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\essbase_client\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\sharedServices\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\hsf_reader_client... Not exists
    C:\epm11\assemblies\biplus_portlets_webapp\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\essbase_studio\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_configlibs\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\commonComponents\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_core_services\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\essbaseProductCommonComponents\9.5.0.0\assembly.dat... O
    k
    C:\epm11\assemblies\essbase_studio_services\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\biplus_interactive_reporting_client... Not exists
    C:\epm11\assemblies\bpm_architect_services\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\hfm_webapp... Not exists
    C:\epm11\assemblies\essbase_administration_services_webapp\9.5.0.0\assembly.
    dat... Ok
    C:\epm11\assemblies\svc_client\9.5.0.0\assembly.dat... Ok
    C:\epm11\assemblies\rmi\9.5.0.0\assembly.dat... Ok
    Result of checking assemblies: Ok
    Checking environment variables... Ok
    Checking user home...Ok
    Checking user is admin... Ok
    All prerequisites are met. Launching install tool.
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.hyperion.install.wizard.splash.Splasher.invokeMain(Splasher.java:
    72)
    at com.hyperion.install.wizard.splash.Splasher.main(Splasher.java:62)
    Caused by: java.lang.NumberFormatException: For input string: "install"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at com.hyperion.install.sw.ISVersion.parse(ISVersion.java:60)
    at com.hyperion.install.sw.AssemblyBundle.<init>(AssemblyBundle.java:53)
    at com.hyperion.install.context.LocalInstallContext.lookupISMP(LocalInst
    allContext.java:154)
    at com.hyperion.install.context.LocalInstallContext.<init>(LocalInstallC
    ontext.java:68)
    at com.hyperion.install.context.LocalInstallContext.initialize(LocalInst
    allContext.java:99)
    at com.hyperion.install.wizard.Main.main(Main.java:283)
    ... 6 more
    1. I have downloaded 32 bit files. Some special config required for such files.
    2. During extracting files the messages popped up saying that the files already exist so i overwritten them.
    Please help.

    Yes, I extracted all the files in the same way.
    However there are 2 things to notice:
    1. The essbase server and client files were not zip format when i download it from edelivery so i simply copy and pasted them from the folder to the directory.
    2. As i mentioned that there were files which were repeated and showing that the files already exists so I overwritten them by saying "yes to all".
    Thanks for your reply.

  • Problem with client_host statement

    Hi all. I'm on devsuite 10g.
    I have a problem while executing client_host statement.
    With another application I have exported a job as script (.bat file).
    Now I want to execute this file from my form application.
    With webutil I'm able to locate file on the client machine.
    To execute it I issue this command:
    Client_host('cmd /c start ' ||my_file_directory\my_file.bat|| '' );
    I encountered an error.
    So I have created one .bat file in which there is this command: calc.exe;
    once I execute this file using the same client_host statement as before, I notice that it has executed from my desktop, and in the dos box appears this path:
    C:\Documents and Settings\dellipri\Desktop
    I have tried to execute my job script file both double clicking it and open manually a dos box and writing full path and name of file and everything is OK.
    So what I would know if there is an option that I must put in my client_host statement in order to execute my_file_name from the absolute path and not from my desktop.
    Thanks all for collaboration,
    Fabrizio

    When you double click on your batch file in explorer the cmd get's invoked with the working directory where you placed your batch file, so the batch file get's executed with this working directory.
    when calling cmd from somewhere else (like client_host) the shell get's invoked with the user home (c:\documents and settings\and_so_on) as working dir.
    So basing your calc sample you placed your testbatch file on the desktop?
    You don't need to put your batch file into any other directory, just force the shell to change the directory where your batch file lies within (wherever that is) and call the batch file.
    just a little sample to get this clear:
    create a file called test.txt in a directory e.g. c:\temp and put some text into it. In the same directory create a batch file called test.bat where you open your file with notepad:
    notepad test.txtdouble click it in explorer, the directory of the shell should be c:\temp, and notepad opens the file.
    then the next run it via start => run and type in
    cmd /c start c:\temp\test.bat
    and notepad prompts you if you want to create a new test.txt (as in c:\documents.... there is no test.txt)
    and the last
    open start => run and type in
    cmd /c cd c:\temp&&test.bat
    and notepad opens the file again. The shell get's invoked with workdir c:\documents..., then changes the directory to c:\temp and then in this directory it calls the batch file.
    It is the same as if you'd put the "cd c:\whatever" into your batch file, but as you said that's not possible, so force the cmd to do that before invoking your batch file (the && command simply tells the cmd to do more than one command; and the first command is to change the directory to c:\temp, and the second is to call the batch file).
    Actually I tried it with the notepad sample I provided above from forms, and it worked for me...
    regards

  • PROBLEMS USING WEBUTIL_FILE_TRANSFER AND CLIENT_HOST COMMAND TO VIEW BLOB

    I am using webutil_file_transfer.DB_To_Client_with_progress to retrieve a blob
    from the database (that was saved in a word format) into a .doc file on the
    client.
    1st problem: The document that is being saved is not readable. It has all
    kind of special characters in it.
    Then using the client_host command, I open the document into ms word.
    2nd problem: The document opens fine (again not readable in garbage
    characters) but when I close the document, notepad pops up blank with nothing
    in it.
    Below is a sample of the code.:
    PROCEDURE DOWNLOAD_DB IS
    l_success boolean;
    username varchar2(30);
    document_name varchar2(20);
    wordexe varchar2(20);
    BEGIN
         username := webutil_clientinfo.get_user_name;
         document_name := 'wo'||:wod.fk_work_order_number||'.doc';
         :locals.file_name := 'Documents and Settings\'||username||'\my documents\'||document_name;
    l_success := webutil_file_transfer.DB_To_Client_with_progress
    (clientFile => 'C:\'||:locals.file_name
    ,tableName => 'DEFECTS'
    ,columnName => 'DESCRIPTION'
    ,whereClause => 'FK_WORK_ORDER_DATE_ID = '||:DEF.FK_WO_DATE_ID
    ,progressTitle => 'Defect document being opened'
    ,progressSubTitle=> 'Please wait'
    if l_success
    then
    CLIENT_HOST('cmd /c start /wait winword.exe C:\'||'"'||:locals.file_name||'"');
    else
    message('File download from Database failed');
    end if;
    exception
         when others
         then
         message('File download failed: '||sqlerrm);
    END;
    Any ideas?

    Hello,
    I use this kind of code with 9i and 10g and it works fine with word, excel and any of windows files.
    I think that, if the file is not correct, the cause may be the first save of the file in the database.
    Which instruction did you use to save first the doc in the BLOB column ?
    Francois

  • Problem using CLIENT_HOST from webforms.

    Greetings,
    I am trying to use CLIENT_HOST to open up ie and display an .htm page. When the form gets to the client_host call it displays a Please Acknowledge message, I click okay then shows an error FRM-40735 WHEN-MOUSE-DOUBLECLICK trigger raised unhandled condition exception ORA-06503. This exception says a function failed to return a value. I used messages to walk through the form so I know the error pops when the client_host is issued. I have tried moving several incarnations of the call listed below. I've searched several forums but although I saw several similar threads could not find one that outlined the problem or found a solution. Any direction or help would be greatly appreciated.
    DECLARE
         file_loc VARCHAR2(100);
         pid WEBUTIL_HOST.PROCESS_ID;
    BEGIN
         file_loc := '''cmd /c START "C:\Program Files\Internet Explorer\iexplore.exe" "K:\COMMON\ITS\RPM.htm"''';
    -- CLIENT_HOST('cmd /c START "C:\Program Files\Internet Explorer\iexplore.exe" ');
    -- CLIENT_HOST('cmd /c START C:\Program Files\Internet Explorer\iexplore.exe ');
    message('file_loc set');
    message('file_loc set');
    CLIENT_HOST(file_loc);
    -- pid := WEBUTIL_HOST.NONBLOCKING_WITH_CALLBACK('CMD /C START "C:\Program Files\Internet Explorer\iexplore.exe" '||file_loc,'HOST_CALLBACK');
    END;
    The lines commented out are some of the things I have tried that did not work. Also the string I am setting file_loc to works on the cmd line.
    Thanks for any help provided, and Happy Thanksgiving!
    Andrew

    Thanks for the suggestion, that was a variant I hadn't tried but same result. Please Acknowledge pop up then an ora-06503.
    Interestingly this time I repeated the action without closing the test form first and got a WebUtil error.
    WebUtil Error: oracle.forms.webutil.host.Host bean not found. WEBUTIL_HOST.Execute will not work. I will not scour forums for this error as well, but perhaps a library isn't attached correctly? I added the webutil library and it seemed to find it and compile fine. I did remove the path when attaching.
    If anyone understands the root cause of these or has found a solution I'd greatly appreciate the help. Thanks!

  • Problem using CLIENT_HOST to FTP files from forms 10g

    Hi,
    I'm trying to use forms 10g ODS & webutil on NT to allow a user to select a file on their machine or the network and transfer the file to a DB server. I want to transfer the file to the file system on the server NOT to a BLOB column on a table. I've used webutil (client_get_file_name) to display the dialog box and allow the user to select a file. This works fine. However, when I try to use CLIENT_HOST to FTP the selected
    to the remote server it fails. I'm issuing the following
    command from within forms:
    CLIENT_HOST('CMD /C ftp -n -s:C:\test_ftp.txt');
    Something tries to kick off and a grey area the size of a dos window flashes on to the screen for a couple of seconds but the FTP does not happen. The test_ftp.txt script is a simple ftp script that transfers one file and I know it works as I can run it successfully from DOS or NT command prompt.
    Questions:
    (1) Does anyone know how to pause the DOS window so you
    can see what is actually happening ?
    (2) Has anyone implemented FTP functionality
    successfully using CLIENT_HOST in the same way that's
    I'm trying ?
    Any help would be appreciated.
    Declan.

    Okay...
    Try this. For testing put your command in a .bat-file. In this .bat-file spool the output to a text-file. I'm not sure about the spooling syntax under Windows, check the Windows documentation for that. Like:
    ftp.bat
    start spooling to ftp.out
    cmd /c .... (your ftp commando line)
    stop spooling
    Perhaps the problem is that it doesn't find the ftp commando? Try hardcode the path like c:\windows\ftp ... etc!

  • Webutil client_host problem executing pkzip pkunzip commands

    Hi,
    I configured webutil with Developer 10g (9.0.4).
    I used webutil_106.zip and jacob_18.zip.
    The execution of this statements (example) are successfully:
    CLIENT_HOST('notepad');
    CLIENT_HOST('tnsping db');
    However, when I issue this ones (in order to zip/unzip files):
    CLIENT_HOST('pkunzip d:\arch.zip d:\tmp');
    or
    CLIENT_HOST('pkzip....');
    I got this error:
    100501 non-OracleException
    What do I have to configure in order to execute this commands????
    Regards, Santiago

    I find the solution in metalink.
    Execute the commands like this:
    client_host('cmd /c start c:\pkzip .....');

  • Problem in using client_image.read_image_file

    Hi all
    I want to load a picture file into a forms item at Develeoper Forms 10g Rel.2 with the following procedure, but it doesnt work and i also get no error.
    PROCEDURE import_image
    IS
    vFileName VARCHAR2(512);
    BEGIN
    -- Transfer Picture from File Directory to Forms Item.
    GO_BLOCK('FOTO');
    SET_BLOCK_PROPERTY(FIND_BLOCK('FOTO'), DEFAULT_WHERE,
    'natpers_oid = 55664');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY(FIND_BLOCK('FOTO'), INSERT_ALLOWED,
    PROPERTY_TRUE);
    SET_BLOCK_PROPERTY(FIND_BLOCK('FOTO'), UPDATE_ALLOWED,
    PROPERTY_TRUE);
    SET_ITEM_PROPERTY(FIND_ITEM('FOTO.FOTO'), INSERT_ALLOWED,
    PROPERTY_TRUE);
    SET_ITEM_PROPERTY(FIND_ITEM('FOTO.FOTO'), UPDATE_ALLOWED,
    PROPERTY_TRUE);
    BEGIN
    vFileName := NULL;
    vFileName := webutil_file.file_selection_dialog('C:\Temp\', '*',
    '|Foto Dateien(*.bmp)|*.bmp|', 'Foto');
    END;
    IF vFileName IS NOT NULL THEN
    client_image.read_image_file(vFileName, 'BMP', FIND_ITEM('FOTO.FOTO'));
    client_host('cmd DEL ' || vFileName);
    END IF;
    END import_image;
    I think the WebUtil 1.0.6 works properly because the 'webutil_file.file_selection_dialog' (see above) works fine.
    Now can somebody give me a tip?
    Best regards
    Martin

    I found the problem :-)
    When i change the following parameter in the file webutil.cfg it works fine.
    transfer.appsrv.enabled=TRUE (old: FALSE)
    Martin

  • CLIENT_GET_FILE_NAME problem in Webutil

    Dear All,
    I have following code to allow user to choose pdf file from his desktop;
    DECLARE
         V_OSUSER          VARCHAR2(20);--Operating System User
    BEGIN
         --Get Operating System User ID
         V_OSUSER := WEBUTIL_CLIENTINFO.GET_USER_NAME;
    --Get Filename to be attached
    :FILENAME := CLIENT_GET_FILE_NAME('C:\Documents and Settings\'||V_OSUSER||'\Desktop',NULL,
    'Purchase Requisition Files)|PR*.pdf','Select Purchase Requisition....',OPEN_FILE,TRUE);
    END;
    After selecting the file for example:
    C:\Documents and Settings\Administrator\Desktop\ABC 123.pdf
    now from another button lets say, "Transfer File" i am copying the selected file to another folder.
    Code is: CLIENT_HOST('CMD /C COPY '||:FILENAME ||' D:\mywork');     
    PROBLEM: is its not working when filename or path or targat has spaces but working if there is no space in filename or path.
    Any suggestion???????

    After adding " in both source and target
    CLIENT_HOST('CMD /C COPY "'||:FILENAME ||'" "C:\My Work"');
    thanks its resolved now
    Edited by: rha2 on Apr 12, 2010 1:09 PM

  • Problem in Clint_Host

    Hi Experts,
    Using Client_Host i am executing MS-DOS commands.
    While executing black screen coming.
    I am using NO_SCREEN option also. then also command prompt screen blinking.
    Below is the sample code:
    CLIENT_HOST('CMD /C COPY C:\'||:parameter.repfilename||' \\10.87.10.19\IISMailAttach\', NO_SCREEN);
    Please do the needful to avoid the black screen.
    My forms Version is 10g.

    Frist, the NO_SCREEN arg is ignored as it is no longer used. If you are seeing a DOS window which appears to just be "waiting", likely it is. My guess is that the requested remote server cannot be found or there is a permissions issue accessing it. Generally, speaking working with remote machines via WebUtil would be considered "not supported". However, in most cases the underlying cause of the problem is related to a security restriction imposed by the OS on the source or destination machine (depending on exactly what you are doing).
    I have tested what you are doing in my environment using 10.1.2.3 and JRE 1.6.0_37 and it appears to work correctly. In my case, however I am calling a remote machine by name rather than IP address. I would recommend the following:
    1. Use the remote machine name instead of the IP. This will likely only work if the machine name is DNS registered.
    2. Verify that you can perform the same action from the failing client machine directly from a DOS shell.
    3. To help determine if permissions is an issue, try copy a file from the client back to the same client. For example:
    CLIENT_HOST('CMD /C COPY C:\somefile.txt \\TheSameMachine\copied.txt');4. Also consider this:
    WEBUTIL_HOST.HOST('CMD /C COPY C:\somefile.txt \\TheSameMachine\copied.txt');WEBUTIL_HOST includes other variations. Refer to the documentation or the actual WebUtil package for more details.

Maybe you are looking for

  • Not showing Currency Code on Print Layout

    Hi to everyone, Is there a possibility not to show the currency code on the document layout, ie, when printing document Thanks Kentish

  • Consolidated qty of a component to be issued.

    Hi Dudes, Suppose a component A will be consumed in the orders of x, y and z materials. My clinet will have the data of consolidated qty of component A rather than the data of consumption qty per each order. They say its not possible to split all lik

  • Best external drive setup?

    I guess I can't be called 'new' to Macs, I've had the mini since May of 2005, but I would like to know what you would recommend in terms of external drive setup. As I began to fill the 80 gb internal, I added a FW 250gb external. It's not full (about

  • ClassNotFoundException Vs NoClassDefFoundError

    Hi, Does anybody know the difference between ClassNotFoundException and NoClassDefFoundError..? Thanks, Den.

  • Fatal Crash Adobe 5.5

    I was working in Captivate 5.5 when it had a fatal crash.  Now my .cptx file is missing.  Can I use a cache file or anything else to recreate the cptx file?