Using OSDT from tbs script (Resolved)
Posted: Wed Jul 21, 2021 2:11 pm
Update: It seems that my ignorance got the better of me so please take the original comment with a grain of salt! The rest of the thread explains clearly how to approach this. My error was making the assumption that in a script you'd use the syntax described in the "General Usage Notes" of the tbosdt manual. Which is incorrect!
For anyone running into similar issues. Please make sure you checked the following:
- https://www.terabyteunlimited.com/tbosdt.htm (there is a link at the bottom with an excellent example!)
- tbosdt.pdf beyond page 75!
I have not modified the original message for prostarities sake!
-----------------------------
So I have been banging my head against the wall and the manuals aren't really helpfull. They contain a lot of info but I cannot get some simple things to work.
The first script I'll be creating will automatically restore a tbi file to a disk. I have the command to do it using imagew.exe and have a simple tbs script which works with hard coded values.
Now hardcoded is not an option for obvious reasons. I need something a bit more dynamic. Thus I need to retreive the HD ID's and partion GUID's. My idea was to use tbosdt for this. However I cannot get this to work!
In interactive mode I can get it to show me the partitions on HD 0. Not to difficult "list hd 0". Great so now I want to call this from a tbs script and store the result so I can use it.
I've tried numerous aproaches however cannot get this to work. Can anyone give me a simple example of how to do this?
I've tried:
- Starting a tbs script from the command line in Windows 10 and TBPE with
-> a = list hd 0;
-> a = RUN list hd 0;
-> a = RUN list hd 0;
- Running a script using tbosdt from win 10:
-> "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\tbosdtw64.exe" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\test.tbs" (contents: list hd 0)
-> "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\tbosdtw64.exe" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\test.run" (contents: list hd 0)
As a side note I was extremely sagrined to find out that after buying a license I could not find any example scripts and the scripts that are provided are not readable.
For anyone running into similar issues. Please make sure you checked the following:
- https://www.terabyteunlimited.com/tbosdt.htm (there is a link at the bottom with an excellent example!)
- tbosdt.pdf beyond page 75!
I have not modified the original message for prostarities sake!
-----------------------------
So I have been banging my head against the wall and the manuals aren't really helpfull. They contain a lot of info but I cannot get some simple things to work.
The first script I'll be creating will automatically restore a tbi file to a disk. I have the command to do it using imagew.exe and have a simple tbs script which works with hard coded values.
Now hardcoded is not an option for obvious reasons. I need something a bit more dynamic. Thus I need to retreive the HD ID's and partion GUID's. My idea was to use tbosdt for this. However I cannot get this to work!
In interactive mode I can get it to show me the partitions on HD 0. Not to difficult "list hd 0". Great so now I want to call this from a tbs script and store the result so I can use it.
I've tried numerous aproaches however cannot get this to work. Can anyone give me a simple example of how to do this?
I've tried:
- Starting a tbs script from the command line in Windows 10 and TBPE with
-> a = list hd 0;
-> a = RUN list hd 0;
-> a = RUN list hd 0;
- Running a script using tbosdt from win 10:
-> "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\tbosdtw64.exe" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\test.tbs" (contents: list hd 0)
-> "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\tbosdtw64.exe" "C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win\test.run" (contents: list hd 0)
As a side note I was extremely sagrined to find out that after buying a license I could not find any example scripts and the scripts that are provided are not readable.