Page 1 of 1
IFW parameters syntax
Posted: Sun Oct 06, 2024 8:07 pm
by Mr.X
Here:
Code: Select all
[Menu_Item_1]
Name=Image for Windows
Path=%ProgramFiles%\TeraByte Drive Image Backup and Restore Suite\imagew.exe
WorkingDir=
Parameters=
Icon=0
How to write (syntax) parameters?
TIA
@TeraByte Support or TeraByte Support(PP)
Posted: Sun Oct 06, 2024 8:19 pm
by Mr.X
@TeraByte Support or TeraByte Support(PP)
Re
adding custom programs to a TBWinRE/PE build.
Code: Select all
md "%TBWinPE_MountPath%\Program Files\CustomProg" 2> nul
copy "F:\CustomProgSource\*.*" "%TBWinPE_MountPath%\Program Files\CustomProg"
Do you think is a good idea or safe to use robocopy instead of copy, I mean one can save one line (md). I mean I've been doing this consistently for several days and see no issues here. For example:
Code: Select all
robocopy "F:\CustomProgSource" "%TBWinPE_MountPath%\Program Files\CustomProg" /MIR
TIA
Re: IFW parameters syntax
Posted: Sun Oct 06, 2024 8:36 pm
by Mr.X
Searching a bit more I found in this tutorial
Creating a TeraByte WinPE Boot Disc Containing Image for Windows (TBWinPE) the following info:
IFWModeParameters - Use this option to specify the command line options for IFW when using IFW mode. This is useful if you want to configure the TBWinPE build to auto-run IFW and perform a specific task (e.g. create a backup or restore an image).
Example: IFWModeParameters=/b /v /d:w0 /f:"e:\backups\win7.tbi" /desc:"Windows 7 Drive"
I guess it applies to answer my question above, correct?
TIA
Re: IFW parameters syntax
Posted: Sun Oct 06, 2024 10:07 pm
by TeraByte Support
Mr.X wrote: Sun Oct 06, 2024 8:36 pm
Searching a bit more I found in this tutorial
Creating a TeraByte WinPE Boot Disc Containing Image for Windows (TBWinPE) the following info:
IFWModeParameters - Use this option to specify the command line options for IFW when using IFW mode. This is useful if you want to configure the TBWinPE build to auto-run IFW and perform a specific task (e.g. create a backup or restore an image).
Example: IFWModeParameters=/b /v /d:w0 /f:"e:\backups\win7.tbi" /desc:"Windows 7 Drive"
I guess it applies to answer my question above, correct?
TIA
Right at the top of the article it says:
Note: This tutorial covers using the TBWinPE.cmd script. If you are using the TBWinPE/RE Builder Windows program please click here to switch tutorials.
The question if you can use robocopy, you can if it is available.
Parameters for menu items are parameters to whatever you're running.
Re: IFW parameters syntax
Posted: Mon Oct 07, 2024 4:15 am
by TeraByte Support(PP)
Keep in mind that if you use the IFW Mode parameters, that will be used every time it boots (unless overridden by something else -- depends on the build). So, if you want your boot media to run the same backup every time it boots, you might use that option.
If you want to add a menu item to TBLauncher to run IFW with certain parameters, you can do that (doesn't have to be the existing IFW item). For example, you could add a menu item to run a backup or restore an image.
In cases where you want to be able to use specific parameters when booting, you could use an autorun.cmd file on boot media or a run file with the BootWIM method.
For adding programs or files to a build, you can use BuildScript (as in your 'robocopy' post) or you could create a plugin to do it using its commands.