Results 1 to 2 of 2

Thread: app.path doesnt work

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Location
    israel
    Posts
    11

    app.path doesnt work

    hello
    this is my code
    i try to open arcview programm but it isnt work

    dim native as string
    native=app.path
    ret-shell("c:\\arcgis\arcexe83\bin\arcmap.exe "
    & native " \\test.mxd",vbNormalFocus")

    when i write instead of native :"c:\temp\test.mxd" is work
    what not good in my code??/
    thanks
    oren t
    tel aviv
    oren t;

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: app.path doesnt work

    VB Code:
    1. dim native as string
    2. native=app.path
    3. ret-shell("c:\arcgis\arcexe83\bin\arcmap.exe "
    4. & native  [b]&[/b] "\test.mxd",vbNormalFocus")

    or

    VB Code:
    1. dim native as string
    2. native=app.path
    3. ret-shell("c:\\arcgis\arcexe83\bin\arcmap.exe "
    4. & "[b]..[/b]\test.mxd",vbNormalFocus")

    Would work as well

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