copy last modified file from directory Visual Basic
okay at work we get credit card transaction from a unix mailbox that need moved to a PC network drive then transferred via FTP to our mainframe drives so that the cobol programs can manipulate the data.
the problem is that the file is not named with any pattern at all (like the date it's recieved) so I never know what the name of the file will be. Only that it will have a .dat extension. What I am trying to do is look into the folder where the files are and copy the last modified .dat file to the network drive and name it greentre.dat. can anyone guide me as to how to start.