u3: where to store data?

Phil Davis revdev at pdslabs.net
Tue Aug 29 23:25:58 EDT 2006


Hey Chipp -

Here's what I got when I ran Malte's second script (slightly modified, and I 
inserted extra CRs to make wraps more detectable):


$U3_IS_UPGRADE = false

$U3_IS_DEVICE_AVAILABLE = true

$U3_IS_AUTORUN = false

$U3_HOST_EXEC_PATH = C:\Documents and Settings\Phil\Application 
Data\U3\0CB16C50A2916885\E12D38CA-C6EF-4bd0-B62A-F230F996FE2F\Exec

$U3_ENV_VERSION = 1.0

$U3_ENV_SUB_VERSION = 1

$U3_ENV_LANGUAGE = 1033

$U3_DEVICE_VENDOR_ID = 2284

$U3_DEVICE_VENDOR = Yahoo

$U3_DEVICE_SERIAL = 0CB16C50A2916885

$U3_DEVICE_PRODUCT = U3 smart drive

$U3_DEVICE_PATH = F:

$U3_DEVICE_EXEC_PATH = F:\System\Apps\E12D38CA-C6EF-4bd0-B62A-F230F996FE2F\Exec

$U3_DEVICE_DOCUMENT_PATH = F:\Documents

$U3_DAPI_CONNECT_STRING = 0CB16C50A2916885

$U3_APP_DATA_PATH = F:\System\Apps\E12D38CA-C6EF-4bd0-B62A-F230F996FE2F\Data


Hopefully this 'data picture' is worth a few words...

Phil Davis


Chipp Walters wrote:
> Thanks Malte! I'm looking to find the folder where the application
> lives on the U3 drive...Did you find an ENVIRONMENT VARIABLE for that?
> 
> Thanks again,
> Chipp
> 
> On 8/29/06, Malte Brill <revolution at derbrill.de> wrote:
>> > I, too, want to WRITE to a specific folder on U3 drive (not a default
>> > documents directory). Let us know if you learn anything.
>>
>> Hi all (and specially Chipp),
>>
>> here is what I found with help from the mothership (thanks Marcus)
>>
>> on mouseUp
>>    put $U3_APP_DATA_PATH into tPath
>>    replace "\" with "/" in tPath
>>    put "/test.txt" after tPath
>>    put "this is a test" into URL ("file:"&tPath)
>>    answer the result & cr & URL ("file:"&tPath) & cr & there is a
>> file tPath & cr & tPath
>> end mouseUp
>>
>> This way the data ends up in the /app/data folder on the u3 drive.
>> Somehow it failed when I used "file://" no idea why.
>>
>> Another script that I find handy is this (which I wrote in my
>> frustration about the meager specs)
>>
>> on mouseUp
>>    repeat for each item theItem in the globals
>>      if "U3" is in theItem then
>>        put theItem && value (theItem) & cr after allU3Vars
>>      end if
>>    end repeat
>>    put allU3Vars
>> end mouseUp
>>
>> Interesting what one can find out about the drive. ;-)
>>
>> Hope this is of any help,
>>
>> Malte
>>
>> _______________________________________________
>> 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