Do you mean ignorance? :roll:(Ignorence spilling out all over me here )
How I can get the path of the programs folder?
-
- User
- Posts: 13
- Joined: Sat Jan 01, 2005 4:47 am
- Location: Cockeysville, MD
-
- Addict
- Posts: 991
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: How I can get the path of the programs folder?
English is a foreign language here too. I think only the British speak English. Nobody really know what language we speak over here.gnozal wrote: English is a foreign language for most people in the world
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
-
- Addict
- Posts: 991
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
-
- Addict
- Posts: 991
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Procedure.s ExpandEnv (env$)
sizerequired = ExpandEnvironmentStrings_ (env$, dest$, 0)
If (sizerequired)
dest$ = Space (sizerequired)
result = ExpandEnvironmentStrings_ (env$, dest$, 159)
EndIf
ProcedureReturn dest$
EndProcedure
Debug "%SystemDrive%: "+ExpandEnv ("%SystemDrive%")
Debug "%SystemRoot%: "+ExpandEnv ("%Systemroot%")
Debug "%OS%: "+ExpandEnv ("%OS%")
Debug "%Temp%: "+ExpandEnv ("%Temp%")
Debug "%HomePath%: "+ExpandEnv ("%HomePath%")
Debug "%Path%: "+ExpandEnv ("%Path%")
Debug "%Programfiles%: "+ExpandEnv ("%Programfiles%")

sizerequired = ExpandEnvironmentStrings_ (env$, dest$, 0)
If (sizerequired)
dest$ = Space (sizerequired)
result = ExpandEnvironmentStrings_ (env$, dest$, 159)
EndIf
ProcedureReturn dest$
EndProcedure
Debug "%SystemDrive%: "+ExpandEnv ("%SystemDrive%")
Debug "%SystemRoot%: "+ExpandEnv ("%Systemroot%")
Debug "%OS%: "+ExpandEnv ("%OS%")
Debug "%Temp%: "+ExpandEnv ("%Temp%")
Debug "%HomePath%: "+ExpandEnv ("%HomePath%")
Debug "%Path%: "+ExpandEnv ("%Path%")
Debug "%Programfiles%: "+ExpandEnv ("%Programfiles%")

Would this not work for you ??
Enjoy!
Code: Select all
#CSIDL_BITBUCKET=$30
#CSIDL_DESKTOP=$10
#CSIDL_FAVORITES=$06
#CSIDL_FONTS=$14
#CSIDL_HISTORY=$22
#CSIDL_MYPICTURES=$27
#CSIDL_PROGRAM_FILES=$26
#CSIDL_STARTMENU=$0B
#CSIDL_SYSTEM=$25
#CSIDL_WINDOWS=$24
buffer.l=0
folder.s=Space(255)
SHGetSpecialFolderLocation_(0, #CSIDL_PROGRAM_FILES, @buffer)
SHGetPathFromIDList_(buffer, @folder)
MessageRequester("Program Files",folder,0)
Enjoy!

Re: How I can get the path of the programs folder?
That is actually true, English is not the most popular language, it is #3, with American as #2, and Spanish as #1gnozal wrote:English is a foreign language for most people in the worldRandy Walker wrote:Who'd of thought anyone would install Windows in some foreign language?
