OMG, I love opensource, or at least when source code is released. I found the source code to B2S Backglass server on SourceForge and commented out some lines that had to do with finding the DirectB2s File. Compiled and reran register, bam it works perfectly. I can post if anyone wants it.
DJRobX that would not work on my system in certain cases when I have many tables with similar names. B2s Server would find a directb2s that was close to the name of the table that was run. I only wanted it to work if it found and exact match.
This is working great now with pup paks as all I have to do is delete or rename the directb2s file "slightly" and it will not run, even if I have many directb2s files with similar names. Perfect
Love this hobby!!!!!
these are the lines I commented out in formBackglass.vb
'If Not IO.File.Exists(filename) AndAlso Not IO.File.Exists(shortfilename) Then
' If B2SSettings.LocateHyperpinXMLFile() Then
' hyperpinfilename = B2SSettings.HyperpinName & ".directb2s"
' shorthyperpinfilename = B2SData.ShortFileName(hyperpinfilename)
' End If
' ' check whether the hyperpin description can be found
' If Not IO.File.Exists(hyperpinfilename) AndAlso Not IO.File.Exists(shorthyperpinfilename) Then
' If filename.Length >= 8 Then
' ' look for short name
' B2SSettings.MatchingFileNames = IO.Directory.GetFiles(IO.Directory.GetCurrentDirectory(), filename.Substring(0, 6) & "*.directb2s")
' If B2SSettings.MatchingFileNames Is Nothing OrElse Not IsArray(B2SSettings.MatchingFileNames) OrElse B2SSettings.MatchingFileNames.Length <= 0 Then
' B2SSettings.MatchingFileNames = IO.Directory.GetFiles(IO.Directory.GetCurrentDirectory(), filename.Substring(0, 6).Replace(" ", "") & "*.directb2s")
' End If
' If B2SSettings.MatchingFileNames IsNot Nothing Then
' For i As Integer = 0 To B2SSettings.MatchingFileNames.Length - 1
' Dim fileinfo As IO.FileInfo = New IO.FileInfo(B2SSettings.MatchingFileNames(i))
' B2SSettings.MatchingFileNames(i) = fileinfo.Name
' Next
' End If
' shortfilename = String.Empty
' For Each file As String In B2SSettings.MatchingFileNames
' If String.IsNullOrEmpty(shortfilename) Then
' shortfilename = file
' End If
' If Not String.IsNullOrEmpty(B2SSettings.MatchingFileName) AndAlso file.Equals(B2SSettings.MatchingFileName, StringComparison.CurrentCultureIgnoreCase) Then
' shortfilename = file
' Exit For
' End If
' Next
' End If
' End If
'End If
Edited by Slydog43, 03 May 2018 - 04:23 PM.