Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Path to current directory found in HTA- but not found in HTML-script

496 views
Skip to first unread message

Hans Stavleu

unread,
Feb 21, 2004, 8:36:20 AM2/21/04
to
I'm sure that my question was asked before. But Google didn't deliver me a
sufficient answer.

If I use
path = fso.getabsolutepathname(".")
in a vbscript in a HTA-file it just gives me the path of the directory from
which the script has been started. That is what I was looking for. But...

The same command in the same file, but with a HTM extention, gives me the
path to the desktop or in a network of my root home directory.

Because I'm looking for the same result that the HTA gives me but then in a
HTM-file, I'm wondering if it possible to get the pathname of the directory
the script was started from. The reason is that I need the HTM in an active
desktop application or as a home-page in an Outlook folderlist-folder.

Any help?

Thanks in advance,

Hans Stavleu


Viatcheslav V. Vassiliev

unread,
Feb 21, 2004, 8:48:19 AM2/21/04
to
You may use document.location (document.location.href,
document.location.pathname etc.)

//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE

"Hans Stavleu" <NOTTHIS...@planet.nl> сообщил/сообщила в новостях
следующее: news:c17n9q$qau$1...@reader08.wxs.nl...

Hans Stavleu

unread,
Feb 21, 2004, 8:55:59 AM2/21/04
to
Thanks Viatcheslav,
I will try that. Didn't think of that myself.
hans

"Viatcheslav V. Vassiliev" <msnew...@www-sharp.com> wrote in message
news:#AjAeFI#DHA....@TK2MSFTNGP09.phx.gbl...

Hans Stavleu

unread,
Feb 21, 2004, 8:59:39 AM2/21/04
to
Thanks.
It works.

hans
"Viatcheslav V. Vassiliev" <msnew...@www-sharp.com> wrote in message
news:#AjAeFI#DHA....@TK2MSFTNGP09.phx.gbl...
0 new messages