jwpjr765
Member
I know how to get a list of files in a local Windows machine's specific directory:
Dim dirInfo As DirectoryInfo = New DirectoryInfo("C:\Temp\")
Dim fileListing() As FileInfo = dirInfo.GetFiles()
But how do I use this class (or applicable one) for a mainframe system where user ID, password and 'change directory' command are needed?
When I attempt to just access the server without credentials and just do the Windows version and use the syntax "\\server_name\AUTO:RPTS.", where 'AUTO:RPTS.' is the mainframe directory name I get the following error:
"The given path's format is not supported."
When I just use '\\server_name\' I get:
"The UNC path should be of the form \\server\share."
Any help would be greatly appreciated!!
Dim dirInfo As DirectoryInfo = New DirectoryInfo("C:\Temp\")
Dim fileListing() As FileInfo = dirInfo.GetFiles()
But how do I use this class (or applicable one) for a mainframe system where user ID, password and 'change directory' command are needed?
When I attempt to just access the server without credentials and just do the Windows version and use the syntax "\\server_name\AUTO:RPTS.", where 'AUTO:RPTS.' is the mainframe directory name I get the following error:
"The given path's format is not supported."
When I just use '\\server_name\' I get:
"The UNC path should be of the form \\server\share."
Any help would be greatly appreciated!!