Hi Guys,
Can someone explain how this code works??? I'm in the process of reverse engineering code for a project I'm working on. Some of the proprietary links/users have been deliberately changed
.
Just need to understand what's going on here and why exactly a user would use File Transfer Protocol. There's more procedures to this module but I took out a snippet just for starters.
Can someone explain how this code works??? I'm in the process of reverse engineering code for a project I'm working on. Some of the proprietary links/users have been deliberately changed

Just need to understand what's going on here and why exactly a user would use File Transfer Protocol. There's more procedures to this module but I took out a snippet just for starters.
Code:
Public Sub SFTPGet(fname As String)
Const cstrSftp As String = """mylink.com/pscp.exe"""
Dim strCommand As String
Dim pUser As String
Dim pKey As String
Dim pHost As String
Dim pFile As String
Dim pLocalPath As String
pUser = "user1"
pKey = """" & BILLING_FOLDER & "some_private.ppk"""
pFile = "someplace/data" & fname
pLocalPath = """" & sInputFileFolder & "."""
strCommand = cstrSftp & " -sftp -l " & pUser & " -i " & pKey & " " & pFile & " " & pLocalPath
Shell strCommand
End Sub