>>>Hello,
>>>
>>>How can I get the windows system directory accross all OS ?
>>>
>>>Xavier
>>
>>
>>* WSH
>>#define SystemFolder 1
>>oFs = createobject('Scripting.FileSystemObject')
>>oSysFolder = oFs.GetSpecialFolder(SystemFolder)
>>? 'WSH :',oSysFolder.Path
>>
>>*WinAPI
>>declare integer GetSystemDirectory in win32API ;
>> string @ lpBuffer, integer uSize
>>lpBuffer=space(300)
>>lnLen=GetSystemDirectory(@lpBuffer, 300)
>>? 'WinAPI :'+left(lpBuffer,lnLen)
>>
Cetin
>
>Not to be picky, but the current maximum path length is 260 (including the null terminator). This impacts not only file functions, but certain ActiveX controls such as the CommonDialogs and TreeView.
George,
While writing it was but thought I would need to explain why 260 :)
Actually I'm after a new API - 'MastersAlreadyReplied' :)
PS: You've never been picky you know. Each time you contribute I learn a new
thing.
Cetin