AdvancedHMI Software
General Category => Support Questions => Topic started by: g.mccormick on October 01, 2020, 11:40:00 AM
-
This is not a ahmi specific question, but I am attempting to copy a log file to a destination. I get an error for the path, but I cannot figure out what the issue is. Any help would be appreciated.
See pic
-
Can't see filename, but my problem a couple of weeks ago is this:
g:\_Filename.csv didn't work
g:\Filename.csv does
George
-
My.Computer.FileSystem.CopyFile(foundFile, My.Computer.FileSystem.SpecialDirectories.Desktop & foundFile.Substring(foundFile.LastIndexOf("\")))
-
My.Computer.FileSystem.CopyFile(foundFile, My.Computer.FileSystem.SpecialDirectories.Desktop & foundFile.Substring(foundFile.LastIndexOf("\")))
Thank you Godra. That worked perfectly. Can you explain the what/why?
-
Look at the bottom left of your picture. It shows the "foundFile" value as the whole path and not only the file name.