Safe place to write a file under Vista

Richard Miller wow at together.net
Wed Sep 2 07:49:33 EDT 2009


Thanks Mark.
Richard



Mark Smith wrote:
> Richard - 'the tempname' might be what you're after. ie.
>
> put the tempname into tFile
> -- do stuff with the file
> delete file tFile
>
> On my OS X machine, "put the tempname" gives this:
> /private/var/tmp/folders.501/TemporaryItems/tmp0
> (repeated calls will increment that trailing zero)
>
> What it would be on windows, I don't know, but it will be an 
> appropriate equivalent.
>
> Best,
>
> Mark
>
>
>
> On 2 Sep 2009, at 07:28, Richard Miller wrote:
>
>> I am finding that, on some Vista machines with some user settings, it 
>> is not possible to write a file from Rev to the root C drive. Seems 
>> that Vista blocks this action. Does that sound about right? If so, 
>> where is a reliable, safe place to write a file (which will soon 
>> thereafter be deleted)? Is specialfolderpath("documents") safe?
>>
>> Thanks.
>> Richard Miller
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list