Hello all
(In Word 2003)
I need to call with my shell command to explorer.exe, it works
shell "explorer.exe" or shell "explorer.exe c:\Data"
But I need use the variables %systemdrive% and %username% and an error
message appears: "this file doesn't exist".
How can I use the variables with shell or whitout it?
Thanks in advanced.

Henpat

Re: How to use %systemdrive% and %username% by =?iso-8859-1?Q?Fre=DFdorf?=

=?iso-8859-1?Q?Fre=DFdorf?=
Thu Jul 21 07:28:03 CDT 2005

Hi,

use the environ-function:

Environ("systemdrive")
Environ("username")

--
regards Christian
~~~~~~~~~~~~~~~~
reply only to this newsgroup
http://www.mvps.org/word/FindHelp/Posting.htm
http://support.microsoft.com/default.aspx?scid=fh;DE;NGNetikette

Re: How to use %systemdrive% and %username% by henpat

henpat
Thu Jul 21 08:29:29 CDT 2005

Thanks it worked.
Henpat

"Christian Freßdorf" <ungueltig@nurfuerspam.de> wrote in message
news:2kb5thqmrx5f$.dlg@zaphod-systems.de...
> Hi,
>
> use the environ-function:
>
> Environ("systemdrive")
> Environ("username")
>
> --
> regards Christian
> ~~~~~~~~~~~~~~~~
> reply only to this newsgroup
> http://www.mvps.org/word/FindHelp/Posting.htm
> http://support.microsoft.com/default.aspx?scid=fh;DE;NGNetikette