|
-
Feb 2nd, 2000, 02:10 AM
#1
Thread Starter
Hyperactive Member
Hi all,
I have a ini file that looks like this:
[Settings]
UpdateExePath=H:\intranet\timesheets\
FileName=update.bat
Now here is my Code (API Declarations are already made)
Dim strBuffer as String
strBuffer = space(255)
n% = GetPrivateProfileString("Settings", "UpdateExePath", "", strbuffer, Len(strbuffer), inifile)
sUpdatePath = LTrim$(RTrim$(strbuffer))
sDrive = Left$(strbuffer, 2)
q% = GetPrivateProfileString("Settings", "FileName", "update.bat", strbuffer, Len(strbuffer), inifile)
sFileName = strbuffer
FullPath = sUpdatePath & sFileName
msgbox FullPath, 64, "Full Path and File"
Please pardon the coding 
Anyway, When I do the message box, only the 'sUpdatePath' variable is seen and 'sFileName' is nowhere. I've checked to make sure the sFileName gets a value and it does, but then loses it when combined together.
It seems sUpdate won't let sFile show itself.
Does anyone have any idea what I'm doing wrong or not doing?
I'm using VB3 Prof
Thanks,
JazzBass
[This message has been edited by JazzBass (edited 02-02-2000).]
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
|