Dim sBuffer As String
sFileName = App.Path + App.EXEName + ".exe"
Open (sFileName) For Binary Read Write As #1
nSize = LOF(1)
sBuffer = Space(1)
Get #1, nSize - 1, sBuffer
' Chequeamos si tiene marca
If sBuffer = "X" Then
sBuffer = Space(3)
Get #1, nSize - 4, sBuffer
Else
sBuffer = ""
EndIf
sBuffer = Format(Val(sBuffer) + 1, "###")
Put #1, nSize - 4, sBuffer$
Close #1