Results 1 to 4 of 4

Thread: [RESOLVED] wordpad path

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    2

    Resolved [RESOLVED] wordpad path

    I want to shell "wordpad.exe" from my application. So, in my code I am going to the registry to find path to the "wordpad.exe" and get return from windowsXP as it is in registry:
    %programfiles%\windowsnt\accessories\wordpad.exe



    When I put this path into shell(...) I obviously get error "file not found" , because %programfiles% cannot be recognized.

    So , now I am looking for some way to find in the windows system were this " environment variable" is decoded to transform it in the real path.

    Appreciate your advise.

    Maxmax

  2. #2
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: wordpad path

    try this

    Code:
    Environ("programfiles")
    IIF(Post.Rate > 0 , , )

  3. #3

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    2

    Re: wordpad path

    yes, it's done. Thanks, zeezee.



    Quote Originally Posted by maxmax
    I want to shell "wordpad.exe" from my application. So, in my code I am going to the registry to find path to the "wordpad.exe" and get return from windowsXP as it is in registry:
    %programfiles%\windowsnt\accessories\wordpad.exe



    When I put this path into shell(...) I obviously get error "file not found" , because %programfiles% cannot be recognized.

    So , now I am looking for some way to find in the windows system were this " environment variable" is decoded to transform it in the real path.

    Appreciate your advise.

    Maxmax

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