Problem to get message

Hi,
I do not know why I still get the message written to the file, using such codes
if (!Directory.Exists(@"c://AB_Position_List//P03RPR-DP03R_0722.txt"))
sw.WriteLine("File 'P03RPR-DP03R_0722.txt' does not exist!");
return;
while the file does exist within 
c:\AB_Position_List
Many Thanks & Best Regards, Hua Min

Try using File.Exists instead of Directory.Exists.

Similar Messages

  • I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display.

    I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display. i have never seen this message before and i have 2 other macbooks and have had many other also. i am assuming this is a problem with the new macbook retina. does anyone know the exact fix to this issue? i have seen many sugestions to try to fix this issue but none have solved the issue for anyone that i can find in the Apple Support Community. thank for looking into this in advance.
    ******A true apple fan********

    Actually your suggestions are the ones that i have tried. i have seen that you have tried to help others with this issue and the only one that i could find that said they found the problem said that it was an ilife update issue and it fixed it and i have no available updates. i know it has to do with something in photo stream because it happens when i create a new library and it is loading the photos but i get the message before i reach the maximum 1000 photos. so i've tried updating, new library(first backing up photos and then deleting them from iPhoto), reinstalling OSX many times, running disc utilities. I called Apple the first day i had this issue and i was the first person to call them for support with the retina display and i actually had it escalated to a senior advisor and we thought we fixed the problem but we did not. i am pretty fluent in dealing with troubleshooting these type of issues and this is the first time i'm reaching out to the community. i figured now that the retina has been out some time now that there would be an obvious answer to this issue. thanks for the quick reply.
    Bebers5

  • GMail POP3 problem: Not getting messages with sender "me"

    HI guys,
    I have an account called [email protected] , I successfully sent mails to the same using javamail.In this messages,sender is marked as "me".
    Now I want to read all the messages in inbox,including the messages sent by same account itself.(messages with "me" sender).
    But I notices that javamail doesnt read any messages which the sender is "me".
    Is there a solution for this?
    thanks in advance,
    umanga
    Edited by: virtualumanga on Jun 6, 2008 7:09 PM
    Edited by: virtualumanga on Jun 6, 2008 7:10 PM

    Ok.Heres what happens.
    When I send emails to the same account using gmail webbase application , those mails (which the sender is "me") are read from my Java-POP3 code.
    But when I send mail using my Java-SMTP code , and try to retrieve them using same Java-POP3 program,those mails are not read.
    Here is my temp account that I am using
    user : [email protected]
    password: umanga123
    You can see there are 3 mails (please dont delete them) , which were sent using my Java-SMTP code.And one mail which is,sent from my yahoo account.
    Below Is the java-POP3 code that I am reading my messages.You can run them your self and see that the messages with "me" and not reading,only the message from yahoo is reading.
    You can test following code without any modifications..
    Please help,
    thanks in advance.
    public class MailGet {
         public static void main(String args[]) throws Exception
              String host="pop.gmail.com";
              String user="fhb.test";
              String pwd="umanga123";
              //String from="[email protected]";
              //String to="umanga@quicksilver";
              Properties props=new Properties();
              props.put("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
              props.put("mail.pop3.socketFactory.fallback", "false");
              props.put("mail.pop3.port", "995");
              props.put("mail.pop3.socketFactory.port", "995");
              //FileInputStream fis=new FileInputStream("/home/umanga/pop.prop");
              //props.load(fis);
              Session session=Session.getDefaultInstance(props,
                        null);
         try {     
              Store store=session.getStore("pop3s");
              store.connect(host,user,pwd);
              Folder folder=store.getDefaultFolder().getFolder("Inbox");
              folder.open(Folder.READ_WRITE);
             System.out.println("Getting messages");
              Message msg[]=folder.getMessages();
             System.out.println(folder.getMessageCount()+" "+folder.getUnreadMessageCount());
             for(int i=0;i<msg.length;i++)
                  System.out.println("Subject: "+msg.getSubject() );          
         folder.close(true);
         } catch (Exception e) {e.printStackTrace(); }     
    Edited by: virtualumanga on Jun 7, 2008 4:45 AM
    Edited by: virtualumanga on Jun 7, 2008 4:46 AM
    Edited by: virtualumanga on Jun 7, 2008 5:21 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Microsfot Sync Services in Lion - isync problems - keep getting message that can't open application  Microsoft Sync Services because PowerPC apps no longer supported since upgrading to Lion. what is this and how do I get rid of the message?

    I keep getting message that i cant open application Microsoft Sync Services because PowerPC applications are no longer supported - what is this and how do I get rid of this?

    Thanks- so if I remove the old apps that i no longer use then the message will automatically go away?

  • Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it acr

    Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it across all the places around to pay their attention. This is a desperate move, so if you are not the right people to help me to get my message accross, may be you can advise where can I go.
    Thank you, and sorry for the language.
    Vitas Dijokas
    I am sorry to say that, but your security makes my life miserable – it’s been 2 months since my Apple ID account got stuck, and since then I cannot update 37 applications (to date), i.e. most of my applications. Half of them I bought. I also paid for iCloud, and it is not working. I paid money and I am stuck with old applications and no iCloud. Your security *****. Your service ***** too. It took your service 1 month to finally understand why this happened to me, and it took me tens of emails to you and 3 hours of telephone conversation to find out the reason for my problem. And the problem is still not fixed. NOT FIXED. You just leave your customer – the one who paid you money and spent so much time with you trying to help you help me – and nothing. You tell me:  “Vitas, Stick your stinky iphone in your *** and enjoy life, we do not care!” *************.
    It is ******* outrageous, and you should know that,  guys. Get into the ******* database and correct the bug. Get someone in the partners-telephone carriers company (it is Orange as carreer and Cellcom as seller of the phone)  authorized to Identify me in personal encounter in one of the branches in Israel (where I live) and make sure it is really me, and get the ******* system accept my password and let me use my phone.
    Otherwise **** off. None of my friends will get my advise to buy an iphone or any of apple products. And I think you should be very attentive to cases like this, guys. Do your work for the money we pay, or disappear. There are many others eager to take your place, and if the problem is not fixed I will eventually go to the others. My patience is lost, and as soon as I can afford another phone I will change it. AND I WILL TRY TO GIVE BAAAAAD PUBLICITY TO APPLE – I am threatening here, so ACT NOW.
    Vitas Dijokas

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • I have master suite cs6. on mac osx. bridge has been quitting unexpectedly. Also, getting message at start up that states that "bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to corr

    I have master suite cs6. on mac osx. bridge has been quitting unexpectedly. Also, getting message at start up that states that "bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation" I have purged the cache several times and adjusted settings with no change. I also downloaded the entire suite and installed. Do I need to uninstall all of the programs before installing the suite? There is not an option to install only Bridge from the install package.

    Maria,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • When opening PS CC 2014 I get message "The program can't strt because ONCoreFoundation8.dll is missing from your computer. Try reinstalling the program to fix this problem".  I did and still get same message.

    when opening PS CC 2014 I get message "The program can't start because ONCoreFoundation8.dll is missing from your computer. Try reinstalling the program to fix this problem".  I did and still get same message.

    Win 7 64bit, have PS cs6, pscc. pscc2014. also Lightroom 5.5 (just upgraded to 5.6). Also the latest updates for all Adobe programs.   But still get
    But the program does start and seems to work well.  But annoying as hell!!!
    Also don't understand why there is pscc2014 rather than just updating pscc??
    Thanks,
    Bob Lurie

  • When trying to uninstall iTune (because the current install has problems), I get the error message 2324.  What should I do to reinstall the application?

    When trying to uninstall iTune (because the current install has problems; iTune error message states it cannot sync and that I should reinstall the application; also, it fails when I tried to upgrade to the latest release), I get the error message 2324.  What should I do to reinstall the application?

    That installer error is a "Can't open file" error
    It suggest that you may have a corrupt file.
    Try running a disk check
    http://windows.microsoft.com/en-US/windows7/Check-a-drive-for-errors
    If it fixes errors try uninstalling iTunes again.
    If that doesn't work, is it possible for find out the name of the problem file, is further information available? Try looking in your Action center - that's on the control panel. Another place is in the Windows Error logs. From the start menu , right click on "Computer" and select manage, then Event viewer.
    If nothing emerges, try a manual uninstall of iTunes and related programs according to this method:
    http://support.apple.com/kb/HT1923
    Don't worry if an uninstall fails, that is expected. Go on to the part where you have to delete files (2. Verify iTunes etc completely deleted) . Hopefully you manage to find a file that can't be deleted, that is the one we will need to deal with.

  • I;m no longer able to use the Penn State ANGEL system (I teach on line) for my email and intead get messages about "script" problems.

    Question
    I'm no longer able to use the Penn State ANGEL system (I teach on line) for my email and instead get messages about "script" problems

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • TS4268 i keep getting message that cant be set up - check network connection. went to Apple store. they could not set it up and referred me to this article which also doesn't solve problem. Keeps getting network message, even in apple store.  Help!!!!

    I keep getting message to check network connection when i try to use face time or imessage. Went to apple store. They could not fix it and referred me to apple support which sent me an article to do the things the store had already tried. Store thinks it is a problem with the ID although the correctID and  p/word are being used. Just get message that cant sign in and check connection and try again. Happens in every location. Can anyone help me with this since Apple  can't?

    Since you've tried the Apple Store, etc., even though you say your Apple ID and password are good, I suspect that's the likely issue.
    I recommend double checking that with Apple.  This link might help:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • I downloaded Mac OS X and I am having problems installing it: I get messages saying that it is was corrupted during downloading.  I have tried re-downloading (which Appstore tells me is free) but everytime I get the same message.  Help

    I downloaded Mac OS X and I am having problems installing it: I get messages saying that it is was corrupted during downloading.  I have tried re-downloading (which Appstore tells me is free) but everytime I get the same message.  Help

    Are you using dial-up, cable, or DSL? Do you have a slow or fast connection? The former is likely to make it difficult to get a reliable download of a 4 GB file.

  • I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help pleas

    I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help please?

    click setup, not autoplay.

  • Why so I keep getting 'blocked-plug in' message!   Very frustrating.  Never happened before.   related to Adobe Flash Player for videos.   Have deleted Adobe and put the new Adobe on, but still get message.   Seems others have had this same problem.

    Why so I keep getting 'blocked-plug in' message!   Very frustrating.  Never happened before.   related to Adobe Flash Player for videos.   Have deleted Adobe and put the new Adobe on, but still get message.   Seems others have had this same problem.

    What is your current Flash Player version: http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html ?
    What is your display adapter, driver version & date?  See http://forums.adobe.com/thread/945765

  • Trying to update to iTunes 10.5, keep getting message "iTunes has an invalid signature. It will not be installed". Others are also posting this problem but can't seem to find any answers

    Trying to update to itunes 10.5, keep getting message "iTunes has an invalid signature. It will not be installed". Others are also posting a similar problem but can't find any answers.

    Please can anyone help on this

Maybe you are looking for

  • Error in "Checking Availabe Space for the DB2 UDB for Unix..." phase

    Hello, We are in the middle of an Upgrade proyect from R/3 4.6C (kernet 4.6D EXT) to ECC 6.0. As a first step we are doing an Heterogenous System Copy to migrate from servers with HP-UX B11.11/Informix 9.4 to servers with AIX 5.3/DB2 UDB 8. We alread

  • Trying to update my credit card for Creative Cloud account but chat support is always repeating the same thing?

    I'm just trying to update my credit card info for my Creative Cloud account, it's been 6 times I've contacted chat support. Every time they repeat the same questions & answers over & over. "What's the name on the card?" -I give it to them. "It will t

  • Slow projector creation

    I am creating a projector for a large application (85MB). The creation of the projector is far too slow. This application would usually take 1hr(max). It is now taking 6-8hrs with my usual settings and very little changed from the previous version. A

  • Case Insensitive Comparison in Oracle 9i

    hi all in Oracle 10g we have the following statement to enable case-INsensitive comparison: ALTER SESSION SET nls_sort=binary_ai do we have somthing like this in Oracle 9i to enable case-INsensitive comparison thnx Ashu :)

  • Using SQLJ from JSP in JDeveloper

    Hello, Has anyone succeeded in creating a JSP file by using SQLJ in JDeveloper 3.1 (Build 681)? In the whitepaper http://technet.oracle.com/docs/tech/java/servlets/jsp/whitepapers/jsp-oow99-paper.pdf it is stated that you can create an SQLJ-JSP by gi