Click to See Complete Forum and Search --> : How to control the case of file name being written out by a VB4 program


dxrana
07-17-2001, 07:09 PM
How to control the case of file name being written out by a VB4 program. Seems i have no control over the Case of the filename. It is outputted as all in Ucase or Lcase in diff PC's. I have posted the prog code below :


Private Sub Command1_Click()
Dim sMsg As String
Dim sFile As String
Dim lTmp As Long

lTmp = FreeFile
sFile = "c:\aBcD.txt"

Open sFile For Output As lTmp
sMsg = "yoooohoooo"
Print #lTmp, sMsg
Close lTmp
End Sub

Strogian
07-17-2001, 07:55 PM
VB4? That was released after Windows 95, right? http://www.sharkyforums.com/ubb/smile.gif

dxrana
07-18-2001, 07:45 PM
Yes, thats right was released after win95

dighn
07-18-2001, 07:55 PM
Hmmm.... try the API function CreateFileEx() and see if that solves this problem...

------------------
So easy to use, no wonder it's number one!!!
Where do you want to go today?
Member of NT Jocks (http://yoconsoft.hypermart.net/images/ntjockdighn.gif)
Tesla coils are not weapons

reklis
07-19-2001, 11:24 AM
Just off the cuff... could you rename it to the proper name after you've written the file?

------------------
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}