I am writing some VB6 code to run on my intranet, and what I want to do is pull FTP files from a remote server. I've already written the code to pull a file, and now I want to write something to list the files in the remote FTP directory.
Apparently I can do this via something like:
strPhysicalPath = Server.MapPath(strPath)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
Set objFolder = objFSO.GetFolder(strPhysicalPath)
In a .vb/s file I can simply leave off the 'Server.' part to create the FileSystemObject, but that doesn't seem to to work with MapPath. Anyone know how I can do this, other than using the INET control (which I'd rather avoid)?
Apparently I can do this via something like:
strPhysicalPath = Server.MapPath(strPath)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject"
Set objFolder = objFSO.GetFolder(strPhysicalPath)
In a .vb/s file I can simply leave off the 'Server.' part to create the FileSystemObject, but that doesn't seem to to work with MapPath. Anyone know how I can do this, other than using the INET control (which I'd rather avoid)?