How to test file and or URL existence ?

I have a table with full path and name of a document or a URL.
Users can now open one of these documents by klicking on a link.
P:\Document\test.doc
or
http://www.nu.nl/
Some times this document no longer exisits.
How do I make sure the user gets a correct error message?
If it is a URL: http://bestaat.niet.nl/
How do I make sure the user gets a correct error message?

941318 wrote:
I have a table with full path and name of a document or a URL.
Users can now open one of these documents by klicking on a link.
P:\Document\test.doc
or
http://www.nu.nl/
Some times this document no longer exisits.
How do I make sure the user gets a correct error message?
If it is a URL: http://bestaat.niet.nl/
How do I make sure the user gets a correct error message?Create another column called url_status in your table and when populating data into it include the url status (valid/not valid)

Similar Messages

  • How to find files and subdirectories in a directory

    can anyone tell me how to find files and subdirectories in a directory .

    Here's a code snippet,
    http://javaalmanac.com/egs/java.io/TraverseTree.html

  • How do I file and manage documents?

    How do I file and manage documents?
    New to iPad, very impressed.
    I want to stop using a PC and run my small B&B using the iPad and iPhone
    Thanks

    The iPad does not include a file management system in the way that a PC does. You may want to think twice about giving up your PC. The iPad is not meant to completely replace a PC.

  • How to test File Adapter from EM Console

    Hi All,
    I have one issue with File Adapter where I am trying to implement a simple BPEL process. Below are the steps;
    1. I have created an empty BPEL process and then add a read file adapter to the left side which will read from a file aa.txt which is present in D:\work folder. File is having data like XXXX,YYYY,ZZZZ. (I have used Native builder for schema generation)
    2. Then I have added Write file adapter on the right side which will write to an other file bb.txt.
    Then I have rebuild and deploy this on weblogic SOA server but on the EM console I am not able to test it as Test button is disabled. Then how to test this scenario? Also I tried testing by placing a new file aa1.txt in the same directory with some content. Logically it should be picked up and then write it to the bb.txt but it is not happening.
    Can anyone please help me in this as how to troubleshoot it.
    Thanks
    RJ

    Thanks for the reply.
    So if i understood correctly it means that we cannot test it using EM console as we have read adapter on the left side because of which we have not exposed it as SOAP service. When we put any file in the D:\XXX then automatically read adapter will pick that up and create one instance in the EM console and then write adapter will write it into the destination file?
    But in our case no instance is getting created in the EM console even when I am copying a file to the directory. Below is the read_file.jca
    <adapter-config name="Read" adapter="File Adapter" wsdlLocation="Read.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="rj*.txt"/>
    <endpoint-activation portType="Read_ptt" operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property name="DeleteFile" value="false"/>
    <property name="MinimumAge" value="0"/>
    <property name="PhysicalDirectory" value="D:\mywork"/>
    <property name="Recursive" value="true"/>
    <property name="PollingFrequency" value="60"/>
    <property name="IncludeFiles" value="rj.*\.txt"/>
    <property name="UseHeaders" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Please help as why it is not getting picked up?
    Regards
    RJ

  • How to test RAM and HDD (Hard Drive).

    Introduction
    HP machines have built-in Bios testers for RAM and HDD's.
    To use them you need to enter Bios by pressing F10 on startup. They are placed under ' Diagnostics menu '.
    Why I wrote this guide and complicate whole situation?
    There are three reasons:
    This testers are not so great and sometimes they do not detect problems which you may have with your hardware. It's recommended to use more advanced tester for RAM and manufacter diagnostic programs to test HDD's.
    Not always you will be able to enter Bios. Sometimes corrupted hardware is blocking possibility to run it.
    Advanced diagnostic softwares for hard drives allow to fix some problems.
    Table of Contents:
    A How to test RAM with Memtest86+.
    B How to test HDD (Hard Drive).
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

    Ad. A
    There are few possibilities to run this program. In this guide I will present how to run it from:
    CD
           and
    USB Flash Drive.
    First we need to burn Memtest86+ on a CD or prepare properly USB Flash drive with a special tool.
    Here you will find Memtest86+ home page from which you will be able to download correct version of this software.
    Solution 1. CD:
            Download ' Pre-Compiled Bootable ISO (.zip) ' and extract it with 7-Zip(free) or WinRar.
            Download CDBurnerXP from here. Install this program and run it.
            Choose ' Browse ISO image '.
            and point Memtest86+ iso file.
            Click ' Burn disc '.
            Wait until burning process will finish.
            Choose ' OK '.
            Exit from program.
    Solution 2. USB Flash Drive:
             Download ' Auto-installer for USB Key (Win 9x/2k/xp/7) ' and extract it with 7-Zip(free) or WinRar.
             Connect USB Flash Drive to one of USB ports. Run ' Memtest86+ 4.10 USB Installer '.
             Click ' I Agree '.
             Select USB Flash Drive and check box to format it.
         Caution!
              Format process will erase all information from USB Flash Drive. If you have there something important then please backup this data first.
               Choose ' Create '.
               Wait until process will finish and click ' Next '.
               Exit from program by choosing ' Finish '.
    How to run Memtest86+.
    Leave USB Flash drive in USB port or CD in CD/DVD drive. Restart your system and on startup press F9 key repetitively:
    After this step you will be able to select from which device you want to boot. Choose from the list ' USB Hard Drive ' if you have prepared USB Flash Drive (like on below photo) or ' Optical Disk Drive ' if you have prepared CD:
    How to use Memtest86+ to test RAM?
    Do at least 2 - 3 passes. In Errors column may show up only 0. If it's other number then you need to replace corrupted RAM stick.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • How to sort files and folders like Windows

    I don't know if this is specific to Arch or every other Linux distro but one thing that really bugs me in Arch is how files and folders are sorted. I use Windows as my main OS (don't start on that please) and I have one folder properly organized exactly as I want it and I like it how Windows sorts this. I access that same folder from my Arch installation, the problem is that the sorting is different and it gets on my nerves lol...
    This is how Windows sorts that specific folder:
    C:\Users\Nazgulled\Documents\University>dir /O
    Volume in drive C is Vista
    Volume Serial Number is F84E-02BE
    Directory of C:\Users\Nazgulled\Documents\University
    05-08-2009 15:34 <DIR> .
    05-08-2009 15:34 <DIR> ..
    05-08-2009 11:10 <DIR> [Archives]
    05-08-2009 14:38 <DIR> [Developers]
    05-08-2009 11:17 <DIR> [X] 1) Cálculo II
    05-08-2009 11:18 <DIR> [X] 2) Análise de Custos
    05-08-2009 11:18 <DIR> [X] 2) Cálculo de Programas
    05-08-2009 11:18 <DIR> [X] 2) Laboratórios de Informática III
    05-08-2009 11:18 <DIR> 2) Algoritmos e Complexidade
    05-08-2009 11:18 <DIR> 2) Arquitectura de Computadores
    05-08-2009 11:18 <DIR> 2) Comunicaçao de Dados
    05-08-2009 11:18 <DIR> 2) Engenharia Económica
    05-08-2009 11:18 <DIR> 2) Estatística Aplicada
    0 File(s) 0 bytes
    13 Dir(s) 24.700.485.632 bytes free
    And this is how Arch does it:
    nazgulled ~/University $ ls -l
    total 7
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Algoritmos e Complexidade
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Arquitectura de Computadores
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Comunicação de Dados
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 2) Engenharia Económica
    drwxr-xr-x 1 nazgulled nazgulled 8192 2009-08-05 11:18 2) Estatística Aplicada
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:10 [Archives]
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 14:38 [Developers]
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:17 [X] 1) Cálculo II
    drwxr-xr-x 1 nazgulled nazgulled 12288 2009-08-05 11:18 [X] 2) Análise de Custos
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 [X] 2) Cálculo de Programas
    drwxr-xr-x 1 nazgulled nazgulled 4096 2009-08-05 11:18 [X] 2) Laboratórios de Informática III
    How can I get Arch/Linux to sort exactly the same as Windows?
    Last edited by Nazgulled (2009-08-05 14:41:47)

    toad wrote:
    Nazgulled wrote:Surely there must be a way to have the same sorting collation in Linux like in Windows
    Ah, no. The way they are doing it is nonsensical and not good practice for a unix style system. Having said that, some solutions have already been offered in this thread.
    While you are free to continue to ask others to help you achieve your aims, it may be more convenient for you to adapt to a structure that is displayed the same way under all systems (just to avoid frustration - not saying you _should_ do it ).
    I really don't care if it's nonsensical, I use Windows 95% of the time or more, it's my main OS, I'm used to it and I like it. Why should I care if it's not a good practice for a unix style system? I just want things to behave the way I like and for a free system like Linux where it doesn't even compare to Windows in terms of freedom in what I can do with it and configure the way I like, it sure is hard to change the way folders/files are sorted...
    It sucks that there isn't a proper solution but I'm not going to adapt anything, that would be nonsensical... But if I have to, I can live with the fact that there isn't a good solution and leave it as it is
    Thanks everyone for their input, "topic closed".

  • How to transfer files and playlists from separate drives

    I have my iTunes library on an external hard drive, but the iTunes is on the old G3 iMac.
    I want to transfer the music files and the iTunes prefs (eg playlists) to a newer laptop.
    Both the iMac and the hard drive have firewire connections.
    How do I go about doing this?
    Thanks,
    Boris

    I would probably try using the migration assistant utility. Go to Applications > Utilities > Migration Assistant. Otherwise, it might work to simply copy the iTunes folder on your old mac to the new one but I'm not sure about this.

  • How to upload file and show it's progress

    hi
    i want to upload files and show the progress of the upload
    process how?
    thanks in advance.

    Hey,
    I attached a sample I did in Flash 8 using PHP. Hope it
    helps.
    http://www.cybercussion.com/vault/fileuploading.zip

  • How to read file and output base64 string?

    im having a hard time reading binary file and converting it to base64.
    is there a parameter in extendscript like file.read('base64') ??

    It is possible in HTML:
    var path = "/tmp/test"; 
    result = window.cep.fs.readFile(path, cep.encoding.Base64);
    if (0 == result.err) {
         //success
         var base64Data = result.data;
         var data = cep.encoding.convertion.b64_to_utf8(base64Data);
    else {
         ...// fail
    You can also refer to the following samples for more examples:
    https://github.com/Adobe-CEP/Samples/tree/master/Flickr
    https://github.com/Adobe-CEP/Samples/tree/master/Collage

  • How to test procedures and functions of pl/sql

    I am working as a QA basically i got a new assignment of testing functions and procedures, and packeged bodies. Can any one help me in this matter.
    Please help me.
    Hi i am new to oracle I want to test procedures and functions,
    and packaged bodies of pl/sql.

    It depends on what you meant by "testing". I guess you need to check that routines (functions, procedures, packages etc) in valid state and execute without errors. The simpliest way is to get some development tool like TOAD (http://www.quest.com), Oracle Maestro (http://www.sqlmaestro.com) or PL/SQL Developer (http://www.allroundautomations.com). You can connect with them to database and look at the routine state VALID or INVALID. You can recompile them, run and even debug. I guess this should be enough.
    Alternatively you can do same thing from sqlplus. Of course with lesser comfort. You need to write certain SQL statements. For example i want to find invalid procedures:
    SQL> select OBJECT_NAME, OBJECT_TYPE from USER_OBJECTS where STATUS='INVALID';
    To check how procedures work you need to execute anonymous PL/SQL block like this:
    declare
         /* local variables declaration */
         NAME VARCHAR2(4000);
         PRESIDENT_ID NUMBER(38);
         ID NUMBER(38);
    begin
         /* setting up variables */
         NAME:='MICROSOFT';
         PRESIDENT_ID:='BILLY';
         ID:=NULL;
         /* calling routine */
         GEOMETRY.ADD_COMPANY(NAME,PRESIDENT_ID,ID);
    end;

  • How to FTP file and extract the zip file automatically?

    Hi,
    My app needs to FTP another site and also automatically unzip the transferred file over the internet by user clicking on one button. Any experts? thanks.

    How do you open a can of beans before you take it out of the pantry?
    However I suppose your question only sounded stupid like that, you didn't really mean it that way. One problem is that you didn't mention which way the transfer was going. I assume you are asking about getting a file and unzipping it? Many of the FTP clients described in the article that jmennen referred to allow you to get an InputStream that allows you to read bytes from the server. You would take this InputStream and wrap it in a ZipInputStream. That way you could unzip the file as you transfer it from the server, rather than having to use a temporary file between the two steps.
    But if you really meant that you wanted the unzipping to take place on the server before you did the download, no, you can't do that.

  • How can Windows files and folder owners just vanish, and how to restore all of them at once?

    See, we have a file server running windows 2003 at our company, and suddenly most of the files and subfolders permissions are gone, lost even the owner, making it unaccessible even for the administrator.
    So since it happend out of nowhere it's most possible to be a system flaw, how can I retrieve all the permisisons back or how can I restore the owner(s) ? Using the "Copy permissions to all subfolders and ....>" does not work, it says it cannot
    apply the changes to the files. 
     Can any1 help? 

    Hi,
    Did you ever run chkdsk on a volume? If so, it could reset security descriptors and set NTFS permissions back to default.
    You could install the hotfixs below to check results:
    An update is available that lets the Chkdsk.exe tool compact the NTFS security descriptor stream in Windows Server 2003 Service Pack 2
    http://support2.microsoft.com/default.aspx?scid=kb;EN-US;919241
    Error message when you run the Chkdsk.exe utility to fix a corrupted volume on a Windows Server 2003-based computer: "Stop 0x00000024"
    http://support2.microsoft.com/default.aspx?scid=kb;EN-US;959608
    You could also refer to the thread below to troubleshoot the issue:
    Permissions Disappearing from Folders
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/c17ba53a-5919-4327-a9b9-727d6be299eb/permissions-disappearing-from-folders
    Regards,
    Mandy
    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.

  • Canvio DTD21B - how to restore FIles and Folders on a different system

    Hi I'm helping my friend.  We backed up her old laptop's hard drive  to a new Canvio 1Texternal hard drive, but backed up the whole system.  The system is now defunct.  It ran Win 7. This is three weeks later and we have a new 17" Toshiba laptop running WIN 8.1. I can't seem to find a way to restore just her FIles and Folders to the new system.  I do not want to overwrite the Win 8.1 operating system so do not want to do a full restore. Her Files and FOlders are important to her so I would appreciate your adice as to how to restore just that data. I can't find anything in HELP or on this forum that addresses this issue.
    THank you.

    I am really surprised that no one has the answer to this question. But, thanks to the 170 of you who read my plea for direciton

  • How to find public and private url for an EBS instance?

    I am asked to find public and private url for an instance. I did in the following way. Can u please correct me if following is wrong.
    1) Go to .xml file.
    2) found s_external_url and corresponding entry is public URL.
    3) found s_login_page and corresponding entry is private URL.
    Please correct me any thing is wrong.
    Regards
    DBA.

    please give a hand. online waiting....
    thanks....

  • How to share files and folders between users of a same mac

    Hello,
    I would like to share a folder among users of the same Mac. I have a folder called toto, containing files and folders and i would like to share toto with other users of my mac. I would like the other users to be able to read and write every file contained in the shared folder toto.
    Is it possible ?
    Thanks a lot,
    Franck

    Yes, that works for items that are already there, but would have to keep being repeated for newly-created items.
    Actually, using chmod -R 777 <folder> raises a Unix question for me that perhaps a more knowledgeable person here can answer for both of us.
    Setting the  "x" bit on an enclosed folder would make it "searchable", which is what you want here, while setting the "x" bit on an enclosed file would make it "executable", which would not be intended.   It's  my understanding that if you use chmod -R 777 you will set the "x" bit on all enclosed items, including the files, while using, say, chmod -R a+rwX would only set the x bit on enclosed folders, not the enclosed files. My question for someone here is, should you therefore never use chmod -R 777 on an enclosing folder and instead always  use something like chmod -R a+rwX?  Does it make any difference in practice whether or not your datafiles are inadvertently made "executable?"

Maybe you are looking for