Vista makes me crazy, please help.



I tried both:
as administrator and as an user with administrator privileges:
1.
open for binary a text file located in c:\Program Files\<App Name>
2.
and put some data into it.

There is not any error indication but the file is not written!
The same code works fine in WinXP.
If FileExists(gstrDestDir & "\any.txt") = True Then
Debug.Print lpString
FileNum = FreeFile
Open gstrDestDir & "\any.txt" For Binary As FileNum
Put #FileNum, 53, lpString & vbCrLf & Chr(9) & Chr(9) & "Release
No. " & Release & vbCrLf & Chr(9) & Chr(9) & "OS: " & WindowsName & " ver."
& WindowsVersion
Debug.Print "done"
Close #FileNum
End If

Your comments appreciated,
Jack





.



Relevant Pages

  • Re: Vista makes me crazy, please help.
    ... as administrator and as an user with administrator privileges: ... Open gstrDestDir & "\any.txt" For Binary As FileNum ... What you are seeing is Vista virtualization. ... Windows Vista Application Development Requirements for User Account Control ...
    (microsoft.public.vb.general.discussion)
  • Re: Vista makes me crazy, please help.
    ... as administrator and as an user with administrator privileges: ... Open gstrDestDir & "\any.txt" For Binary As FileNum ... Under Vista any file you need to write to needs to be in the User AppData ...
    (microsoft.public.vb.general.discussion)

Loading