Results 1 to 8 of 8

Thread: [Resolved]AHH!!! What's going on here! app.*

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    [Resolved]AHH!!! What's going on here! app.*

    When i have this msgbox come up in VB, it says

    VB Code:
    1. MsgBox "Location: " & App.path & "\" & App.EXEName & ".exe"

    Says: "C:\VB\MyApp\MyProgram.exe"

    When i compile it, it then says "C:\VB\MyApp\\MyProgram.exe"

    But if i put this code in
    VB Code:
    1. MsgBox "Location: " & App.path &  App.EXEName & ".exe"

    VB says "C:\VB\MyAppMyProgram.exe"

    But compiling it says "C:\VB\MyAppMy\Program.exe"


    What's going on here!
    It's taken me ages to figure this out, i'm trying to have a program copy itself to a location on the harddrive (such as programfiles) because it rights to the registery to start it self up with windows, and the control panel needs a location for the program (i have an option in control panel. I can post my entire project here if you want, but i think it will take too long for any of you to go through. So if you can tell me which one of these msgboxes are liars, or another way to fix this problem.

    Thanks!
    Last edited by Slyke; Aug 2nd, 2006 at 04:32 AM.

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