How do I retrieve the .exe path?

How do I retrieve the .exe path?  In Window_Loaded I have:
            System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
but Visual Studio does not like "Assembly" ... does not exist in the current context.
bhs67

System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
Or import System.Reflection at the top:
using System.Reflection;
Armin

Similar Messages

  • How do I retrieve the BBC addresses from sent email in Mac OS X Mail

    I am using Mail 6.6 (1510) - Two weeks ago I sent a program update to a lot of people . I would like to send a new update this week. I located the previous update but do not see the BBC sent list in the raw source header.
    How can I retrieve the original BBC address list I originally sent the email to?
    Any suggestion would be awesome. Thank for your time.
    Joel
    OSX 10.8.5

    Bob - Thanks but thats not showing the recipients. I tried both commands.
    This what I get:
    Return-Path:
    Received: from st11p01mm-asmtp001.mac.com ([17.172.204.239]) by ms01564.mac.com (Oracle Communications Messaging Server 7u4-27.08 (7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTP id <[email protected]>; Mon, 21 Jul 2014 05:26:32 +0000 (GMT)
    Received: from [192.168.0.17] ([75.177.90.122]) by st11p01mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <[email protected]>; Mon, 21 Jul 2014 05:26:32 +0000 (GMT)
    X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.14,0.0.0000 definitions=2014-07-20_03:2014-07-18,2014-07-20,1970-01-01 signatures=0
    X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407210075
    Content-Type: multipart/alternative; boundary="Apple-Mail=_14C9F530-6913-4021-AA5F-FA07412CBAEB"
    Message-Id: <[email protected]>
    Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
    X-Mailer: Apple Mail (2.1510)
    <Email Edited by Host>

  • How can i retrieve the vallue of a component's attribute while enhancing?

    Hi...
    I am new to SAP...and am working with WEB UI Enhancement...
    Can anyone help me to know how can i retrieve the value of the Opportunity status in the component of survey ICCMP_SURVEY?
    And also, which is the field taht i need to change to make the survey non editable?
    I came across an attribute CHANGEABLE in method IS_CHANGEABLE which is being checked before the survey template is opened up..But is it possible to update this field?
    Any helpful pointers would be rewarded...
    Thanks....

    Thanks for the quick replies guys, I will work on that. Wish I could have thought of that before haha, well the only thing that I will need to check later on is gathering all the file paths within one array. Since the main gets called several times with each file selected, I have to gather them all with the serversocket and then when they are all gathered I can begin another piece of code. Dunno if that will be doable. Since I don't know if the user selects 5 or 400 at the same time, I think the serversocket will append to an arraylist every incoming file paths and the UI viewing the file paths will update itself if other file paths are appended.
    Thanks a lot, I will return on that as soon as I am finished.

  • I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?

    I updated my iPod and it erased everything i had on it.  How do i retrieve the songs that i bought from the iTunes store?  when i try to download/buy them again they tell me i have already purchased them do i want to buy them again?  I have authorized my computer but none of them are in my music now.

    You buy one and only one download.
    It is your responsibility to move/copy/backup your music.
    Certainly you did not update your ipod without making sure that you had transferred anything purchased on the ipod to your computer and included it in your regular backup copy of your computer.

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I forgot my password to get inot email on Thunderbird. How do I retrieve the password or set a new one?

    When I ttry to get my email through Thunderbird, it is now asking me for my password, but I have forgotten it, it has been so long since I have been asked for it. How do I retrieve the password, or set a new one?
    YOU CANNOT EMAIL ME MY ANSWER SINCE I CANNOT OPEN MY EMAIL. CALL at 240-305-7128 or email at [email protected]
    == This happened ==
    Every time Firefox opened
    == yesterday

    You need to go to the website of your email provider, only there can you change your password, or let them send you a new one to a different address. Thunderbird can't help you with that.

  • I recently removed an outlook account and now all of my calendar events are missing. The majority of them were added from my iphone 4s. How do I retrieve the events? Backing up with iCloud did not help, as I assumed it would.

    I recently removed an outlook account and now all of my calendar events are missing. The majority of them were added from my iphone 4s. How do I retrieve the events? Backing up with iCloud did not help, as I assumed it would.

    Outlook is a mail client for PC's (and Macs). It is not a type of account. Do you mean an "Exchange Account"?
    If so, then re-add it. The calendar events live on the Exchange Server. The only way to get them back is to re-add the account to the phone. The contents of Exchange and IMAP accounts are not part of the 'backup' as they already exist elsewhere.

  • How can i change the default path of installation

    I had creative cloud for a while. Today i changed the default installing folder, from the creative cloud settings/prefferences(can't remember) menu, from C to D. Then i uninstalled all the programs from adobe cs6 to take the new cc programs. When i want to reinstall adobe creative cloud it is installing on D and since there is no operating sistem on D i can't install the creative cloud. It keeps installing on D. How can i change the default path of installation if i uninstalled creative cloud?

    Or how can I change the prefered installation folder that can be changed from creative cloud menu/prefferences when i have uninstalled creative cloud?

  • How can I change the installation path  of JWS?

    I have to install the JRE 1.4.0_01 in silent mode on Windows XP. For the JRE I can set the installation path in the corresponding dialog and record it in an *.iss file. When starting the silent installation the JRE is correctly installed into this path but the Java Webstart installation procedure doesn't care about this path and installs JWS in 'D:\Programme\Java Web Start'.
    How can I change the installation path for JWS?
    J�rg

    Verify Free Disk Space. Assuming you are installing the OS to the C: drive.

  • My iPhone was stolen.  How do I retrieve the pictures etc that were on imt.  I know they must be in the iCloud but I don't know how to get into it from my iPad.  Also, I would like to try to locate the phone ...how do I do that from my iPad?

    My iPhone was stolen.  How do I retrieve the pictures etc that were on imt.  I know they must be in the iCloud but I don't know how to get into it from my iPad.  Also, I would like to try to locate the phone ...how do I do that from my iPad?

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
     Cheers, Tom

  • I accidently hit "forget about this site" in my history, and it deleted all related sites to it. i desperately need to get them back. how do i retrieve the forgotten or deleted sites from history in firefox4 ?

    i use the firefox4, and when i went to my history, i right clicked to delete a certain site, and accidentally hit the last option; (forget about this site) which deleted all the similar sites to the one i clicked! i.e. if it were facebook site, all facebook sites were gone..
    '''how do i retrieve the sites i lost in history?'''

    Tony, thnx for the prompt response,,
    however, i didn't delete. i hit the below option which reads; "forget about this site" which is the last item in the list that appears when you right click any site in history.
    i was told there are open source programs that can retrieve it.
    '''how sure r u that they cannot be recovered?!'''

  • How do I get the full path and filename of the current document?

    I'm writing a format plug-in. How do I obtain the full path and filename of the current image (document) from within my plug-in? Any help would be greatly appreciated!

    I actually just figured this out. For anyone else who would like to know, check out the propetizer sample code in the photoshop sdk. It makes a "filter" plug-in that just spits out all the properties of the document you could ever want to know about. The function I used to get the full path and filename of the current document is PIGetDocumentName(). I hope this helps someone eventually...

  • How to selectively disable Header & Footer/How do we retrieve the PageName in the custom navtype cla

    I would like to disable the Header and Footer for the login page. In my Custom Navigation Type class, I went ahead and made the following changes to the isFeatureEnabled() function.
    if(feature.Equals(NavFeatureEnum.TOPBAR))
    returnfalse;
    if (feature.Equals(NavFeatureEnum.HEADER))
    return false;
    But this essentially disables the header and footer for the entire Sub Portal. How can I retrieve the PAGE NAME in the Navigation Type class so that I can selectively disable the feature. This is what I would like to do
    if (pageName.equals("LOGIN")) {
    if (feature.Equals(NavFeatureEnum.HEADER))
    return false;
    Appreciate anyone's help in resolving this issue.
    Thanks
    Vikram

    Vikram,
    Unfortunately, you there is no way to check for page name inside the IsFeatureEnabled method. What you could do, if you want to always disable the header and footer in all navigation schemes, is to change com.plumtree.portalpages.common.uiparts.PlumtreeDP to have it check for current page name. In the Display method, search for
    displayHeader = GetPlugNavFeature(navType,NavFeatureEnum.HEADER);displayFooter = GetPlugNavFeature(navType,NavFeatureEnum.FOOTER);
    and change it to:
    if ( !LoginAS.STR_MVC_CLASS_NAME.equals(GetOwner().GetName()) ) { displayHeader = GetPlugNavFeature(navType, NavFeatureEnum.HEADER); displayFooter = GetPlugNavFeature(navType, NavFeatureEnum.FOOTER);} else { displayHeader = false; displayFooter = false;}
    Just remember that we might make changes in PlumtreeDP in future updates. You would have to add this code in again if we do.

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

  • I have mistakenly deleted a mail folder which I had created. Can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    I have mistakenly deleted a mail folder in which I had created. I can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    Yeah not a problem. It does seem though that if you did not have a Time Machine backup then you may not be able to recover the deleted folder :/ But for future reference to prevent any of this, a Time Machine backup is a great investment.
    What it does is create an entire backup of your computer anything from personal information down to the screen saver.
    What you first need is a new external hard drive (I would recommend a 1TB or higher just to prevent running out of space soon).
    after that, just plug in the drive to your computer.
    once it is plugged in, in the top right hand corner, close to the wi-fi symbol, you should see a symbol that looks like a clock with a backwards arrow around it.
    click on that and select "open time machine preferences"
    just turn the button to the "on" position, and select the backup drive and Time Machine does the rest
    very great tool

Maybe you are looking for