How to use %systemdrive% and %username%

H

henpat

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top