-
Windows path
Hi, somebody know how to use a windows path instead a regular path?
Open "c:\windows\faq.txt" For Input As #1 - regular path
I mean the string above can not be used on windows 2000, beacuse windows 2000 is WNNT, there is something to pickup the regular windows folder? Like %windowsfolder%
Thanks a lot
Daniel Fonseca
-
Developers code book say's :
Code:
'Make a new project. Add a module. To the form add a command button.
'Code:
'Add this code to the module:
Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
'Add this code to the command button:
Private Sub Command1_Click()
Dim Junk, WinDir$
WinDir = Space(144)
Junk = GetWindowsDirectory(WinDir, 144)
WinDir = Trim(WinDir)
MsgBox "The Windows Directory Path is: " & WinDir
End Sub
peet
-
peet...you've got the DCB?! Where can I get it. I've been looking for ages but where it says to download it has since gone offline (www.vbsquare.com/dev). :mad:
-
mmm yes I noticed... (that the site is gone...)
and yes I have it .. both the source version and compiled version..
you want the compiled version offcourse :p
I can send it to you ... don't think thats illigal... I think it was kind of open source code.
peet
-
thanks man! E-mail is by the power of greyskull!
nice one ;)
-
chrisjk
sent it but it was returned with an error msg :(
peet
-
yeah, I just found out my mail server is down at the moment, sorry!
Could you try moooo! instead, thanks!
-
should be in you inbox by now :)
peet
-
-
may i have a copy of that book please too
[email protected]
thnks
-
http://www.planetsourcecode.com search for Developers code book
:)
-
:eek: who dredged this up
gotta cover those email addys!