-
putting files
Hi,
I was developing an application which uses a .dat file to store some data. This file is to be opened from c:\windows directory. But if i were to use the same app in winnt does it need to create a different directory named windows. If it does, is there a way by which i can write the file in c:\winnt directory just like how the installation does for storing the files as - winpath etc ..
Help ..
pramod_mb
[email protected]
-
Re: putting files
If you want to find the windows directory do the following
private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (byval lpBuffer as string, byval nSize as Long) as Long
private Sub Form_Load()
Dim Winlocation as string, Bfr as Long
Bfr = 255
Winlocation = Space(255)
Call GetWindowsDirectory(Winlocation, Bfr)
End Sub
Hope This Helps
-
Re: putting files
thnx for the help. It was just what i wanted.
[email protected]