qwerty
02-21-2007, 11:47 AM
This is a snippet of code that is giving me a headache, basically i step into this code should the main file i want to check the version of is missing for whatever reason (main file is an exe and same code works ok), but for this sys file i keep getting a " Attempt to index global 'prev_info' (a nil value) " Error on the last line, is it not possible to grab the file info from a sys file type ??
bakup_file = String.Concat(_SystemFolder, "\\My_File.sys");
prev_info = File.GetVersionInfo(bakup_file);
-- Clear Last Error Code --
Application.SetLastError(0); -- set the last error to "no error occurred"
-- Get File Version of backup file --
prev_version = prev_info.FileVersion;
bakup_file = String.Concat(_SystemFolder, "\\My_File.sys");
prev_info = File.GetVersionInfo(bakup_file);
-- Clear Last Error Code --
Application.SetLastError(0); -- set the last error to "no error occurred"
-- Get File Version of backup file --
prev_version = prev_info.FileVersion;