Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Generate a complete xmcache.ini

  1. #11
    Variable Bitrate
    Join Date
    Mar 2007
    Location
    Nashua, NH
    Posts
    237
    Could you try this one? I was using a function to generate a temporary file name and use that. For some reason (maybe policies on your system?) it was failing to create the temp file. This new version doesn't rely on the tmpnam() function...hopefully this works.

    I am actually using what is stated in the error message now for the temp name; 'XM Channel Lineup.htm'. If this doesn't work, then let me know.
    Attached Files Attached Files

  2. #12
    Constant Bitrate DeadlyAP1's Avatar
    Join Date
    Aug 2005
    Location
    MA
    Posts
    207
    Quote Originally Posted by meisner View Post
    Could you try this one? I was using a function to generate a temporary file name and use that. For some reason (maybe policies on your system?) it was failing to create the temp file. This new version doesn't rely on the tmpnam() function...hopefully this works.

    I am actually using what is stated in the error message now for the temp name; 'XM Channel Lineup.htm'. If this doesn't work, then let me know.
    Worked perfect and AMAZINGLY fast!!! thanks a million!

  3. #13
    Constant Bitrate DeadlyAP1's Avatar
    Join Date
    Aug 2005
    Location
    MA
    Posts
    207
    So, if I put this file into my RR directory, will it automatically overwrite the existing xmcache.ini everytime I run it? Can you make it save it as "read only"?

    That way I can just make a shortcut to it on the desktop and run it periodically to make sure I always have an up to date file.


    EDIT, I just tested it and it does not overwrite.

  4. #14
    Variable Bitrate
    Join Date
    Mar 2007
    Location
    Nashua, NH
    Posts
    237
    No file attributes are applied to the new xmcache.ini file. So it is not read only. So yes, you could just keep running it regularly (assuming you have Internet connectivity) and always have a complete cache.

    BTW...what version of Windows did you just run this on? I tried on an old XP machine here at work and it failed with a missing function in the winsock dll (ws2_32.dll).

  5. #15
    Constant Bitrate DeadlyAP1's Avatar
    Join Date
    Aug 2005
    Location
    MA
    Posts
    207
    Quote Originally Posted by meisner View Post
    No file attributes are applied to the new xmcache.ini file. So it is not read only. So yes, you could just keep running it regularly (assuming you have Internet connectivity) and always have a complete cache.

    BTW...what version of Windows did you just run this on? I tried on an old XP machine here at work and it failed with a missing function in the winsock dll (ws2_32.dll).


    OK, I made a mistake, it IS overwriting which is great. Is there any way to get it to set attributes?

    I am testing this on my vista machine but it will eventually be put to work in my XP machine in the car.

  6. #16
    Variable Bitrate
    Join Date
    Mar 2007
    Location
    Nashua, NH
    Posts
    237
    I just rewrote the functions that relied on the newer winsock dll, so this version *should* run on XP and Vista boxes.

    What attributes do you want set...just read-only? Do you want the XMCache.exe to abort if the .ini already exists?
    Attached Files Attached Files

  7. #17
    Constant Bitrate DeadlyAP1's Avatar
    Join Date
    Aug 2005
    Location
    MA
    Posts
    207
    Quote Originally Posted by meisner View Post
    I just rewrote the functions that relied on the newer winsock dll, so this version *should* run on XP and Vista boxes.

    What attributes do you want set...just read-only? Do you want the XMCache.exe to abort if the .ini already exists?


    Yes, if I could just get it to set "read only" that would be cool.

    I would ALWAYS want it to overwrite with the newer file even if one existed. I am basically going to set it up like I described on my desktop shortcut to update periodically.

    THANKS

  8. #18
    Variable Bitrate
    Join Date
    Mar 2007
    Location
    Nashua, NH
    Posts
    237
    Oh, now I understand you...you want the xmcache.ini file to be generated, then have read-only set. When xmcache is run again, you want it to overwrite the old ini file, and then set it to read only again.

    that's doable...just give me a little time.

  9. #19
    Constant Bitrate DeadlyAP1's Avatar
    Join Date
    Aug 2005
    Location
    MA
    Posts
    207
    Quote Originally Posted by meisner View Post
    Oh, now I understand you...you want the xmcache.ini file to be generated, then have read-only set. When xmcache is run again, you want it to overwrite the old ini file, and then set it to read only again.

    that's doable...just give me a little time.


    AWESOME!!!!

  10. #20
    Variable Bitrate
    Join Date
    Mar 2007
    Location
    Nashua, NH
    Posts
    237
    OK, let me know if this is exactly what you want.
    Attached Files Attached Files

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Complete bolt in Screen/CPU/HD/PS - indash
    By blk02si in forum Fabrication
    Replies: 777
    Last Post: 04-27-2010, 09:21 PM
  2. 1987 Toyota Camry -- Complete Resurrection
    By Sidewalksalvage in forum Worklogs
    Replies: 96
    Last Post: 01-11-2008, 04:21 AM
  3. complete beginner, few questions, thanks for help!
    By mattress in forum Road Runner
    Replies: 5
    Last Post: 08-21-2006, 08:39 AM
  4. FS: Complete Mini-ITX CarPC w/Xenarc Monitor + More
    By DLe in forum Classified Archive
    Replies: 23
    Last Post: 10-19-2004, 09:15 PM

Bookmarks

Posting Permissions

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