Page 1 of 1

TBCMD not recognizing my drives

Posted: Fri Oct 15, 2021 8:00 pm
by WillASM
Decided to revisit tbscript and improve on some of my scripts I wrote years ago.
Immediately noticed that all the scripts I was using to access the Bootit EMBR partition no longer work?
For a short example...

Code: Select all

    sub main()

    dr=getdrive()                        ; This works as expected
    printl("current drive is ",dr)

    getdrvltrinfo()
    h=gethdinfo(0)                       ; This does not work
    printl("the HD number is ",h.num)

    getdrvltrinfo(0)
    getkey("Press Any Key To Exit...")

    end sub
gethdinfo fails to detect any drive.

I also tried to run from TBCMD

Code: Select all

list hd 0
and that just gives me a "Invalid drive" response?

I did recently wipe my drive to re-install win 10 and upgraded bootit bm as well.
That all went fine. I can boot to all my partitions just fine and creating and restoring images
works perfectly. I'm at a loss trying to figure out why gethdinfo() is no longer working though??

Any suggestions? Thanks, William

Re: TBCMD not recognizing my drives

Posted: Fri Oct 15, 2021 11:32 pm
by TeraByte Support
You have to be running as administrator for gethdinfo to work.

Re: TBCMD not recognizing my drives

Posted: Fri Oct 15, 2021 11:42 pm
by WillASM
Thank you! Can't believe I didn't catch that. Every time I do a clean install there is always some program I forget to set the permissions on. All good now, thanks again.