如何获得COOKIES文件夹目录
请问各位,我想获得COOKIES文件夹的目录该如何获得,因为不同的操作系统该文件夹所在目录都不同,我想有没有一个方法能自动获取该文件目录啊
我从论坛上搜索了一个方法能自动获取SYSTEM文件夹的目录,不知道是否能改造成我需要的代码,请各位出个主意,谢谢
Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Sub Form_Load()
Dim sSave As String, Ret As Long
'Create a buffer
sSave = Space(255)
'Get the system directory
Ret = GetSystemDirectory(sSave, 255)
'Remove all unnecessary chr$(0)'s
sSave = Left$(sSave, Ret)
'Show the windows directory
MsgBox "Windows System directory: " + sSave
End Sub