If I have a csv file that is stored in my downloads folder and the name of the csv file changes every time the program runs how would I move that csv file to a different location in file explorer. I tried using the move file activity but it does not keep the format of the csv file when it moves the file.
So for that question I was reading the data from each csv file and did not need to move the file anywhere. This time I need to just take the file from downloads and move it to a different folder/directory.
StrCSV = Path.GetFullPath(Directory.GetFiles(Environment.ExpandEnvironmentVariables("%USERPROFILE%\Downloads"),"*.csv").OrderByDescending(Function(d) New FileInfo(d).LastWriteTime).First)
above code pull the very recent file from the downloads folder which you can pass it to Move File activity…