|
-
Jul 4th, 2001, 05:25 PM
#1
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
-
Jul 4th, 2001, 05:34 PM
#2
-= B u g S l a y e r =-
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
-
Jul 4th, 2001, 05:48 PM
#3
PowerPoster
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).
-
Jul 4th, 2001, 05:57 PM
#4
-= B u g S l a y e r =-
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
I can send it to you ... don't think thats illigal... I think it was kind of open source code.
peet
-
Jul 4th, 2001, 05:59 PM
#5
PowerPoster
thanks man! E-mail is by the power of greyskull!
nice one
Last edited by chrisjk; Jan 27th, 2002 at 04:36 PM.
-
Jul 4th, 2001, 06:16 PM
#6
-= B u g S l a y e r =-
chrisjk
sent it but it was returned with an error msg 
peet
-
Jul 4th, 2001, 06:33 PM
#7
PowerPoster
yeah, I just found out my mail server is down at the moment, sorry!
Could you try moooo! instead, thanks!
Last edited by chrisjk; Jan 27th, 2002 at 04:35 PM.
-
Jul 5th, 2001, 03:41 AM
#8
-= B u g S l a y e r =-
should be in you inbox by now
peet
-
Jul 5th, 2001, 07:21 AM
#9
PowerPoster
thanks peet!
-
Jan 27th, 2002, 02:42 PM
#10
Fanatic Member
may i have a copy of that book please too
[email protected]
thnks
-
Jan 27th, 2002, 03:39 PM
#11
-= B u g S l a y e r =-
http://www.planetsourcecode.com search for Developers code book
-
Jan 27th, 2002, 04:36 PM
#12
PowerPoster
who dredged this up
gotta cover those email addys!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|