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.
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.
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.
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?
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.
OK, let me know if this is exactly what you want.
Bookmarks