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.

How to search for tbi file on USB Stick

Postby UkiwiS » Tue Jun 23, 2015 4:02 pm

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
UkiwiS
 
Posts: 12
Joined: Tue Apr 29, 2014 9:40 am

Re: How to search for tbi file on USB Stick

Postby TeraByte Support » Tue Jun 23, 2015 5:27 pm

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 585 times
TeraByte Support
 
Posts: 2332
Joined: Thu May 05, 2011 3:37 pm

Re: How to search for tbi file on USB Stick

Postby UkiwiS » Wed Jun 24, 2015 2:58 pm

Thanks very much for your assistance.

KIWI
UkiwiS
 
Posts: 12
Joined: Tue Apr 29, 2014 9:40 am


Return to Scripting