|
-
Aug 18th, 2007, 05:06 AM
#1
Thread Starter
New Member
[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
-
Aug 18th, 2007, 10:56 AM
#2
Frenzied Member
Re: wordpad path
try this
Code:
Environ("programfiles")
-
Aug 19th, 2007, 11:23 AM
#3
Re: wordpad path
What programming language do you use?
-
Aug 19th, 2007, 11:09 PM
#4
Thread Starter
New Member
Re: wordpad path
yes, it's done. Thanks, zeezee.
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|