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
Christian Freßdorf - 21 Jul 2005 13:28 GMT
Hi,
use the environ-function:
Environ("systemdrive")
Environ("username")

Signature
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
henpat - 21 Jul 2005 14:29 GMT
Thanks it worked.
Henpat
> Hi,
>
> use the environ-function:
>
> Environ("systemdrive")
> Environ("username")