Jump to content

Environment variables for office


Recommended Posts

Posted

Hi. For starters, I am not sure wether this is the correct forum to post this thread in, but here goes. ,)

My question is quite simple. Is there any variable, which is predefined in Windows, in order to get into the officeXP/2000 folder?

Like %windir%, %systemdrive% and so on.

The only differance is that it takes you into ./..../office10/ or ./..../office9/ .

--- Gos


Posted

Ah... Look there. Nice nice. Sounds great. =) I can use that.

So, I reckon no one know if there is any predefined variable then, or?

Under the key written above I found something OUTLOOK.EXE.... Under this key I found to strings.

(Standard) and path.

(Standard) is that path to outlook.exe and path is the path to "./..../office10", is there any way to... "execute" path so Windows will open that folder?

---Gos

Posted

see reg.exe and http://support.microsoft.com/kb/q130510/

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE" /v Path

Kixtart is a much better scripting language than 'dos', but I don't know what you are trying to accomplish, or in what context you need this for

break ON

$office=readvalue("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE","Path")

shell 'explorer /n,"'+$office+'"'

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...