Results 1 to 9 of 9

Thread: Application.startuppath

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Application.startuppath

    Hello,

    I want to be able to edit a file. The file will be located in the same directory as the setup.exe. However when the program is run it does work when i use the application.startupath. However, when I don't use it works ok. Can anyone explain how this should work.

    Code:
    fileMap.ExeConfigFilename = Application.StartupPath & "\CodeRed6\CodeRed_1_0_0_10\CodeRed.exe.config.deploy" 'Not work
                fileMap.ExeConfigFilename = "C:\CodeRed6\CodeRed_1_0_0_10\CodeRed.exe.config.deploy" 'Works ok
    
                config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None)
    Many thanks in advance,

    Steve
    Last edited by steve_rm; Oct 4th, 2006 at 10:52 PM.
    steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width