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

Get Current Directory?

0 views
Skip to first unread message

Michael J. Gregg

unread,
Feb 2, 1999, 3:00:00 AM2/2/99
to
How do you get the current directory?

Everything I've seen you have to specify a drive letter....

Maybe I'm overlooking something...

Zerb

unread,
Feb 3, 1999, 3:00:00 AM2/3/99
to
set fso = WScript.CreateObject("Scripting.FileSystemObject")
sCurrentDir = fso.GetAbsolutePathName("")

Michael J. Gregg wrote in message ...

OSAMU TERAO

unread,
Feb 4, 1999, 3:00:00 AM2/4/99
to Michael J. Gregg
If you want to get it within HTML,
try below;

<SCRIPT language="VBScript">
<!--

Function GetHolderPath
Dim HolderPath, FullPath, Ch, I

For I = 9 To Len(Document.Location)
Ch = Mid(Document.Location, I, 1)
If Ch = "/" Then
FullPath = FullPath & "\"
HolderPath = Fullpath
Else
FullPath = FullPath & Ch
End If
Next
GetHolderPath = HolderPath
End Function

MsgBox "Holder Path :" & GetHolderPath

//-->
</SCRIPT>

Michael J. Gregg wrote:

> How do you get the current directory?
>
> Everything I've seen you have to specify a drive letter....
>
> Maybe I'm overlooking something...

----------------------------------
寺尾おさむ(Osamu Terao)
E-mail: ter...@naa.att.ne.jp
URL: http://www.ilc.or.jp/~terasyu/
-----------------------------------

0 new messages