Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    345

    File.GetVersionInfo from a .sys file ??

    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 ??

    Code:
    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;

  2. #2
    Join Date
    Oct 2006
    Posts
    345
    grrrrr.... ok, boy do i feel stupid .... worng file location was causing the problem, i missed out part of the file path ... oops!

    but it has presented me with another problem, in that it is possible that if my code looks for the original exe, doesnt find it, it then checks this backup file, if that too is missing, then it errors ....

    This was expected, however my error check routine is not catching it and i am getting the popup error which then exits the script, that wasnt suppossed to work like that !! ... back to the drawing board

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts