Joe Yoder wrote: > Thanks - Maybe some day I'll take the time to try to use this. > >
Couldn't you just have a table for storing the last used file name and auto increment it ;)? > Joe > > On Tuesday, July 03, 2007 2:46 PM, Ted Roche wrote: > >> Date: Tue, 3 Jul 2007 14:46:11 -0400 >> From: Ted Roche >> To: [EMAIL PROTECTED] >> Subject: Re: Try/Catch handling of Copy File errors >> >> On 7/3/07, Joe Yoder <[EMAIL PROTECTED]> wrote: >> >> >>> I think I can achieve what I need by looping FCREATE(<UniqueName>) until >>> success. At that point I will have the name of a file I can safely >>> overwrite by setting safety off. >>> >> There's a windows API call. I think it's CreateTemporaryFileName() >> that does exactly this. Limited to 65,535 files iirc. >> >> Nope, a quick Google shows GetTemporaryFileName. Here's the VB >> knowledgebase article: >> >> http://support.microsoft.com/kb/195763 >> >> -- >> Ted Roche >> Ted Roche & Associates, LLC >> http://www.tedroche.com >> >> >> [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.