Community
Showing results for 
Search instead for 
Do you mean 
Reply

.PAD File Location

Accepted Solution Solved
Highlighted
Copper Contributor
Posts: 28
Country: United Kingdom
Accepted Solution

.PAD File Location

Is there a registry entry that will give me the name of the folder that the .PAD files are located in?

 

It would be helpful to know this without starting ACT!

 

Thanks.

Luke

 


Accepted Solutions
Highlighted
Solution
Accepted by topic author lukedev
‎02-18-2020 11:42 AM
Bronze Super Contributor
Posts: 1,284
Country: USA

Re: .PAD File Location

[ Edited ]
 '----------------------------------------------------
            ' Get some stuff form the ACT registry Keys
            '----------------------------------------------------
            Try
                If Me.PadFile = String.Empty Then
                    Me.PadFile = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\ACT\", "LastDBFileused", "")
                    If Lastusr = String.Empty Then
                        Lastusr = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\ACT\", "LastUser", "")
                    End If
                End If

            Catch ex As Exception
                ' do nothing
            End Try

You can get the PAD file and UserName from the registry

-- JimDurkin

View solution in original post


All Replies
Highlighted
Nickel Super Contributor
Posts: 481
Country: United_Kingdom

Re: .PAD File Location

Normaly the pad file resides beside the act! database files, there is nothing that I know is in the registry for it.

Highlighted
Solution
Accepted by topic author lukedev
‎02-18-2020 11:42 AM
Bronze Super Contributor
Posts: 1,284
Country: USA

Re: .PAD File Location

[ Edited ]
 '----------------------------------------------------
            ' Get some stuff form the ACT registry Keys
            '----------------------------------------------------
            Try
                If Me.PadFile = String.Empty Then
                    Me.PadFile = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\ACT\", "LastDBFileused", "")
                    If Lastusr = String.Empty Then
                        Lastusr = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\ACT\", "LastUser", "")
                    End If
                End If

            Catch ex As Exception
                ' do nothing
            End Try

You can get the PAD file and UserName from the registry

-- JimDurkin