Hi,
I've been reading in the forums a bit and managed to find some snippets to assist me in my task. I'm trying to make a little exe that will:
1. Find all fixed drives.
2. search all fixed drives that were found for a single file.
3. Overwrite that found file with a new one.
I'm trying the file.find , but I don't kno what folder this file is going to be stored in. The user could've put it anywhere. From the snippets, I've managed the following code :
I know where I've left off is all messed up, but I don't know where to go from here. Any Help?Code:drivetbl = Drive.Enumerate(); for drvindex, drives in drivetbl do drive_type = Drive.GetType(drives); if (drive_type == 3) then appdirectory = File.Find(,"blah.exe",true,false,nil,nil); if (appdirectory ~= nil) then result = Dialog.Message("Notice", "" .. appdirectory[1], MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); break; end end end
Thanks![]()

