Hello,
I'm trying to create an app that will look for multiple files with a dialog and when found write the file location to a text file. For testing I was looking for NWClientSettingsApp.exe located in the root of c:\. When I run my code it always finds the file in c:\recycle.bin. I tried searching for other files and they all say found in c:\recycle.bin. Can someone explain why it's finding C:\recycle.bin? I deleted all recycle bins for all users. Is there a better way to do this with mutliple files to find? Thanks!
I'm trying to create an app that will look for multiple files with a dialog and when found write the file location to a text file. For testing I was looking for NWClientSettingsApp.exe located in the root of c:\. When I run my code it always finds the file in c:\recycle.bin. I tried searching for other files and they all say found in c:\recycle.bin. Can someone explain why it's finding C:\recycle.bin? I deleted all recycle bins for all users. Is there a better way to do this with mutliple files to find? Thanks!
Code:
StatusDlg.Show(MB_ICONNONE, false); StatusDlg.ShowCancelButton(true, "Cancel"); StatusDlg.SetCancelled(false); found = File.Find("C:\\", "NWClientSettingsApp.exe", true, true, nil, nil); StatusDlg.Hide(); if (found) then Dialog.Message("File Found", "The file is loacted in:" .. found[1]); TextFile.WriteFromString("C:\\Information.txt", found[1], false); end
Comment