Webutil - to check the file/folder path is valid in client pc

I'm using oracle 10g forms. OS is Windows.
When i try to write a file from DB to Client in order to open the file in client system,
i 'm using CLIENT_HOST('CMD /C '||<filename>); => which saves the file in desktop.
In order to specify a different location, i assigned a local variable and concatenating it with the file name. But my requirement is, before i specify a different path, i want to know whether the path is valid or not?
Say for example:
var_temp_folder := 'C:\DB_File\';
var_success :=
webutil_file_transfer.DB_To_Client_with_progress(
clientFile => <filename>
,tableName => <tablename>
,columnName => <columnname>
,whereClause => <where_clause_condition>
     ,progressTitle => 'Download from Database in progress'
     ,progressSubTitle=> 'Please wait');
CLIENT_HOST('CMD /C '||var_temp_folder||<filename>);
-- On the above, var_temp_folder is the local variable i specified, i 'm opening the file from DB to Client PC.
But before that i want to check whether this path in var_temp_folder variable is available in client pc (Note: Client PC runs on windows).
For that, can i use the CLIENT_HOST or any other function/procedure in WEBUTIL available for the same?
Any immediate help would be appreciated..
Regards
Muthu

Yea... i found the solution...
webutil_file.file_is_directory(<folder_path>) will help to check the whether the path is valid or not in client pc.
if not webutil_file.file_is_directory(<folder_path>) then
user_message('Path does not exist');
raise form_trigger_failure;
end if;
Any other suggestions also be appreciated..
Thanks
Muthu

Similar Messages

  • Function module to check if a given file/folder path is valid or not?

    Hi,
    I am using function modules GUI_DOWNLOAD and GUI_UPLOAD.
    Is there any function module to check if a given file/folder path is valid or not?
    Thanks.

    Hi Kumar ,
    REPORT  zdir_test.
    TYPE-POOLS: abap.
    DATA: v_dir TYPE string.
    DATA: v_bol TYPE abap_bool.
    v_dir = 'c:\sap\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
      EXPORTING
        directory            = v_dir
      RECEIVING
        result               = v_bol
      EXCEPTIONS
        cntl_error           = 1
        error_no_gui         = 2
        wrong_parameter      = 3
        not_supported_by_gui = 4
        OTHERS               = 5.IF NOT v_bol IS INITIAL.
      WRITE:/ 'Directory exists.'.
    ELSE.
      WRITE:/ 'Directory does not exist.'.
    ENDIF.
    Regards,
    Sachin M M

  • I'm a Pro Tools user, who just did an "Archive and Install" installation of 10.5.8 over my 10.4.11 on my 2 Ghz G5, now Pro Tools won't launch.  I checked the extensions folder and sure enough, the digidesign extensions were left behind.  Can I revert back

    I'm a Pro Tools user, who just did an "Archive and Install" installation of 10.5.8 over my 10.4.11 on my 2 Ghz G5, now Pro Tools won't launch.  I checked the extensions folder and sure enough, the digidesign extensions were left behind.  Can I revert back to the "Archive" of my 10.4.11 System from the "Previous Systems" folder?  If not, what's the point of creating the "archive"?

    Did you select "Preserve User Settings"?
    Archive and Install installation automatically moves existing system files to a folder named Previous System, then installs Mac OS X again. (See tip 3.) You cannot start up your computer using a Previous System folder, nor can you "re-bless" the Previous System folder. (See tip 1.)
    You can choose to preserve your user and network settings before installing. This option automatically moves existing users, Home directories, and network settings. This also skips the Setup Assistant after installation.
    Note: Because the "Preserve user and network settings" option moves, not copies, existing users, Home directories, and network settings, from the Previous Systems folder to the newly installed System, these items will not exist in the Previous Systems folder after the Archive and Install is complete.
    http://support.apple.com/kb/ht1710
    Read this:
    http://support.apple.com/kb/HT2196
    BTW, it is never recommended to do a major OS change without having a full, bootable backup.

  • How to check the file size before loading it to the context

    Hello,
    I have an application to upload a file and write it to the server using the FileUpload UI and IWDResource Interface.
    I would like to limit the size of the file the user is uploading to, say, 2MB.
    The problem is that the current API doesn't allow me to check the file size before I store it in IWDResource. The API available for IWDResource:
    IWDResource resource = ...
    InputStream stream = resource.read(false);
    size = stream.available();
    Is working on the file only AFTER storing it in the context and the server's memory. This way, if a user decides to upload 1GB file for example, he can easily crash the server.
    I am already familiar with <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71">this</a> arcticle but it doesn't answer this question as well, all it does is calculating the file size only after storing it in the context.
    Any ideas...?
    Roy

    Hi Ram,
    Have you activated your Objects ?
    You need to activate your objects in order to see them in RWB.
    Thanks & Regards,
    Varun Joshi

  • 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

  • Get the file's path

    I am using the file upload component to choose a file. I need to save the file's path in database. The problem is that the attribute "fileName" which is blinded to this component contains the name of the file – not the file's path as I need. Could you please guide me how to reach the path of the chosen file? 
    Thanks ahead,

    This may be helpful.
    http://nsnotfound.blogspot.com/2007/08/nsimageview-and-image-filenames.html
    Eric

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • Cannot update, repair, uninstall itunes in Windows7-64bit. Have itunes v10.5.0.142 installed but is missing "itunes64.msi" file .  Need copy of itunes64.msi file which is located in the file folder ProgramData\Apple Computer\Installer Cache. Thanks.

    Cannot update, repair, uninstall itunes in Windows 7-64bit.  I have itunes version 10.5.0.142 installed but is missing the "itunes64.msi" file.  Would like to obtain a copy of this file which is located in the file folder ProgramData\Apple Computer\Installer Cache.  If someone could supply a copy of this file on this site, it would really be appreciated.  Thanks in advance. 

    See Troubleshooting issues with iTunes for Windows updates for general advice.
    If you want to install an older version of iTunes see http://support.apple.com/downloads/#itunes or OldApps.com.
    tt2

  • Why do images unlink themselves to the current catalogue and rename themselves in the file folder?

    Can someone tell me why images unlink themselves to the current catalogue and rename themselves in the file folder
    Message title as edited by: Brett N

    proupicture wrote:
    BTW when i remove the "2-2-2" Lightroom then will recognize it....just a pain to do
    As web-weaver alluded to previously, the -2-2-2 is the mark of Lightroom renaming a file to resolve a filename conflict. - in a nutsell: if it needs to write a file, but the name is already taken (a file of that name already exists in the folder) it appends -2 (yes, it may be -3 or -4 too depending - but I shan't explain all here).
    For the record, I never want Lightroom to append a -1, -2, -3 ... to *any* of my files, be they catalog, photo, or export... This feature is for people who use computers without understanding about files, or folders, or disks... - which is cool, but in my case, any time Lr is doing that it's the wrong thing to do.
    i.e. if there is a filename conflict - I want to be involved in resolving it.
    Worth noting: there are 2 things that can happen in Lightroom:
    1. Proper automatic resolution of legitimate filenaming conflicts (by appending -digit uniqueness suffix).
    2. Improper automatic resolution of un-real filenaming conflicts due to Lightroom bugs/confusion. e.g. renaming a file will sometimes add the suffix even though there is no filename conflict.
    Bottom line: If images are unlinking themselves and renaming themselves (and you didn't do it, inadvertently outside Lightroom, or in...), then there is a bug in Lightroom. If that is the case, then such bug may very well have been set off by some anomaly in your computer/file-system/catalog... - worth considering that.
    If this is a bug in Lightroom, consider reporting it via the link below, along with as much info as you can about how it happened, how to reproduce...
    http://feedback.photoshop.com/photoshop_family/topics/new
    Rob

  • I have had audition for 2 years.  Today it crashed.  It gave a configuration error: 16  The message said to uninstall and reinstall.  I did.  Still the same error.  Then I searched forum and checked the two folder permissions.  They were correct.  So what

    I have had audition for 2 years.  Today it crashed.  It gave a configuration error: 16  The message said to uninstall and reinstall.  I did.  Still the same error.  Then I searched forum and checked the two folder permissions.  They were correct.  So what do I do???????

    Hi Charles,
    Please refer the following helps article on the problem.
    https://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html
    Hope this helps.
    Regards,
    Sumit Singh

  • How can we check the file is tab deliminated at the time of gui_upload

    Hi All,
    How can we check the file is tab deliminated or not at the time of gui_upload.
    Regards,
    Amar

    Hi,
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =
    *   FILETYPE                      = 'ASC'
    *   HAS_FIELD_SEPARATOR           = ' '       " This indicates fields seperation in the file

  • The project could not be created,please check the webroot folder(it may overlap with an existing project)

    Error msg: "The project could not be created, please check
    the webroot folder (it may overlap with an existing project)." This
    occurs in the CF/Flex Application Wizard Pproject Information
    Window on a Flex3 application. I checked to make sure that there
    were no overlapping applications and the message still persists.
    There are old threads on this from Flex 2 but the problem still
    exists in newly released Flex 3. Please help!

    I can't help you with this, but you are not alone. A friend
    of mine has exactly the same problem

  • HT3486 Can I shared the files/folder of my time capsule with Mac/PC/iPad outside my lan?

    Can I shared the files/folder of my time capsule with Mac/PC/iPad outside my LAN?

    Mac yes.. use BTMM and iCloud or direct AFP connection to the TC.
    There is huge amount of info.. just look up remote access time capsule.
    PC no.. there is no AFP protocol application that I know of.
    iPad no,.. again it is not an AFP protocol device. The only open access method apple allowed is BTMM which doesn't work for ipad.
    If you want access for PC and ipad you need to replace the current modem router combo.. whatever it is with one that includes vpn server endpoints.. these can be fairly cheap.. plenty of products with 3rd party firmware will work. VPN is far superior method.

  • IPhoto says it cannot import my photos b/c they may be an unrecognized file or the file may not contain valid data. The operation could not be completed. Error code is: ImageCaptureCoreError-9905.

    Unable to download photos from my camera. iPhoto returns an error message that states: The following files could not be imported (they may be an unrecognized file or the files may not contain valid data). FILE NAME: 100_0490.JPG      REASON: com.apple.ImageCaptureCoreError- 9905.  WHAT'S UP WITH THAT?  Did not have a problem importing photos under the LEOPARD OS, however, now that I have upgraded to Yosemite 10.10.3 the iPHOTO app is not performing the imports.

    Are you using Photos, or iPhoto? Maybe you've got a corrupt file on your camera. I would try using the image capture application to import the bad picture to my desktop. If it works and the picture looks ok,  then delete that pic from the camera, then try to import into iphoto again. You can then import the pic it was saying was bad from your desktop.
    Or, try downloading all the pics using image capture and then import from the download folder.

  • The file name is not valid. The file name is a device or contains invalid characters.

    Hi ,
    I am getting below error in SSIS 2008 package when it is run through control-m
    The file name is not valid. The file name is a device or contains invalid characters.
    component "FF_SRC_InboundFidelityInputFile" (1) failed the pre-execute phase and returned error code 0xC020207E.
    although this package is working fine in dev environment from visual studio.
    control-m agent has proper permissions to the folder still it is failing. Please if anyone knows solution for this issue. I am working on this issue since more than a week but reached nowhere. Please help.
    Thanks 
    Paras Gupta

    Hi Paras,
    Based on your description, it is not the VS IDE issue, if it is related to the SSIS, I suggest you post the issue in this forum here:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
    , and there you would get better response.
    Best Regards,
    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.

Maybe you are looking for

  • Purchased Iphone 3 from Apple store, came to put my sim card in but it wont work?

    It isnt locked to any phone supplier, I have tried puttin an o2 sim card in but no one seems interested, help!

  • Help with putting 2 seperate videos onto 1 Dvd

    I have been looking around for a tutorial to put 2 separate video on 1 Dvd using Premier then exporting not only the single sequence or videos to Encore but i want to export them as 2 separate videos that can be triggered separately in encore by the

  • How to Process Customer Orders

    My Question is Using the AdventureWorks2012 Database how would you create a Stored Procedure that will Allow a customer to buy multiple items and the store proc process the whole things and nsert all the necessary information in the Sales.OrderHeader

  • GETBACKUPAGENT - what is this and should I open?

    A few days ago I started getting a prompt at startup to open a file downloaded from the internet called "GETBACKUPAGENT". Hoping someone can provide some information on what this is or how I can remove it from my IMAC. I have searched for the specifi

  • Windows XP and deskjet D4360 not working

    I have and old version of Windows XP with no service packs and I cannot get my new deskjet D4360 to work.  Has anyone else had this problem and been able to get around it.  I have tried downloading the service packs but cannot. thanks