Gustav Brock
gustav at cactus.dk
Tue Aug 5 02:07:57 CDT 2003
Hi Stephen and Dave "windir" may be preferable. Not sure if "systemroot" exists on Win9x machines ... /gustav > Stephen > The environmental variable ( systemroot ) is what You need. > I hope that the following helps. > Dave > ============================= > Sub ttest() > Dim aroot As String > aroot = Environ$("systemroot") > Debug.Print aroot > End Sub