How to search for tbi file on USB Stick

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
Post Reply
UkiwiS
Posts: 14
Joined: Tue Apr 29, 2014 4:40 pm

How to search for tbi file on USB Stick

Post by UkiwiS »

I have the following restore script.

sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub

I use this script on different hardware and sometimes another drive is detected (even though it's empty) causing the restore to simply fail without an error. If I change --f:l2 to --f:l1 it will work in these instances but I'd like a single script to be able to handle both cases.

What would I need to change so that script finds and restores from the correct location?

Thanks in advance
KIWI
TeraByte Support
Posts: 3598
Joined: Thu May 05, 2011 10:37 pm

Re: How to search for tbi file on USB Stick

Post by TeraByte Support »

This quickie sample should give you an idea, but since using IFL, just use
the option for IFL to keep the drive booted mounted, then you could just
refer to it under /mnt/image



"UkiwiS" wrote in message news:9836@public.scripting...

I have the following restore script.

sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub

I use this script on different hardware and sometimes another drive is
detected (even though it's empty) causing the restore to simply fail without
an error. If I change --f:l2 to --f:l1 it will work in these instances but
I'd like a single script to be able to handle both cases.

What would I need to change so that script finds and restores from the
correct location?

Thanks in advance
KIWI
Attachments
schfilesample.zip
quick sample of searching for a file starting at drive 1 (instead of 0)
(484 Bytes) Downloaded 1426 times
UkiwiS
Posts: 14
Joined: Tue Apr 29, 2014 4:40 pm

Re: How to search for tbi file on USB Stick

Post by UkiwiS »

Thanks very much for your assistance.

KIWI
Post Reply