home *** CD-ROM | disk | FTP | other *** search
/ terabyteunlimited.com / 2014.06.terabyteunlimited.com.tar / terabyteunlimited.com / ifwbatv2.zip / ProfileHelp.txt < prev    next >
Text File  |  2008-03-06  |  15KB  |  341 lines

  1. ####################################################################################################
  2. This file will explain how to configure each of the SET commands in Profile.cmd.
  3. ####################################################################################################
  4.  
  5. set IFWPath=
  6.  
  7.    ** This setting is required, regardless of where images are to be saved.
  8.  
  9.    Specify the path to IMAGEW.EXE, including the file name itself.  Do not include quotation marks.
  10.  
  11.    Examples:
  12.  
  13.       set IFWPath=C:\Program Files\Image for Windows\imagew.exe
  14.       set IFWPath=C:\Program Files\TeraByte Unlimited\Image for Windows\V2\imagew.exe
  15.  
  16. ####################################################################################################
  17.  
  18. set IFWParms=
  19.  
  20.    ** This setting is required, regardless of where images are to be saved.
  21.  
  22.    Specify the parameters to be passed to Image for Windows, NOT including the target parameter
  23.    (i.e. the parameter beginning with "/f:").  The script will add the "/f:" parameter on its own.
  24.  
  25.    To see what command line parameters are accepted by Image for Windows, refer to the PDF manual.
  26.    You can also get a summary of accepted command line parameters by running "IMAGEW.EXE /?".
  27.  
  28.    Examples:
  29.  
  30.       set IFWParms=/b /d:w0@0x12 /rb:0 /cdws:32 /noej /cdrs:32 /vpd
  31.  
  32. ####################################################################################################
  33.  
  34. set ImageName=
  35.  
  36.    ** This setting is required, regardless of where images are to be saved.
  37.  
  38.    Specify the name of the image file, with or without the TBI extension (but preferably without).
  39.  
  40.    The name used can use long file names (i.e. it may contain more than eight characters, and/or
  41.    spaces).
  42.  
  43.    Examples:
  44.  
  45.       set ImageName=WINDOWS
  46.       set ImageName=WINDOWS.TBI
  47.  
  48. ####################################################################################################
  49.  
  50. set BackupParentDir=
  51.  
  52.    ** This setting is required when saving images to a hard drive.
  53.  
  54.    Specify the parent directory for backup files (i.e. one level above the directory where the image
  55.    files themselves will be stored).  At the very least, this must be a root directory (i.e. "D:").
  56.    Do not include quotation marks or a trailing backslash.
  57.  
  58.    The directory used can use long file names (i.e. it may contain more than eight characters,
  59.    and/or spaces).
  60.  
  61.    Target device (i.e. "/f:d@p") format is not supported when saving images to a hard drive.  The
  62.    target must be specified by path and file name (by specifying values for the BackupParentDir and
  63.    ImageName settings).
  64.  
  65.    Examples:
  66.  
  67.       set BackupParentDir=E:\Backups\Images
  68.       set BackupParentDir=E:\Backups\Image Files
  69.       set BackupParentDir=F:
  70.  
  71.    More Information:
  72.    -----------------
  73.  
  74.    When you use these scripts to save images to a hard drive, they save the image files in
  75.    directories named according to the mask YYYYMMDD, which represents the date in effect when the
  76.    imaging process begins.  The BackupParentDir setting described here is how you specify where the
  77.    YYYYMMDD directories themselves will be stored.  For example, suppose you use the following
  78.    setting:
  79.  
  80.       set BackupParentDir=D:\Backups
  81.  
  82.    If you were to begin the IFW batch process on July 4, 2005, the image files would be saved here:
  83.  
  84.       D:\Backups\20050704
  85.  
  86.    If you were to run the IFW batch process again on July 4, 2005 (and with the same profile), the
  87.    scripts would begin saving the image files in numbered subdirectories:
  88.  
  89.       D:\Backups\20050704\001
  90.       D:\Backups\20050704\002
  91.  
  92.    And so on.  Please note that when the "D:\Backups\20050704\001" directory is first created, the
  93.    files originally stored in "D:\Backups\20050704" are moved to it, and the current image files
  94.    will be saved under "D:\Backups\20050704\002".  This is the only circumstance under which image
  95.    files are moved by these scripts.
  96.  
  97.    Please refer to the ReadMe.txt file for information on how the script attempts to determine
  98.    your regional settings in order to correctly format the date for you in YYYYMMDD format.
  99.  
  100.    Currently, the maximum number of numbered subdirectories that the scripts can create and handle
  101.    is 25.  That is, if you try running the scripts a 26th time on a given date (keeping in mind that
  102.    the date is taken from the system), you will receive an error.
  103.  
  104.    If you never happen to run the IFW batch process more than once on any given date, then the
  105.    numbered subdirectories will never be used.
  106.  
  107. ####################################################################################################
  108.  
  109. set Space=
  110.  
  111.    ** This setting is required when saving images to a hard drive.
  112.  
  113.    Specify how many megabytes (MB) of free space must be available on the target partition to
  114.    continue without first automatically deleting one or more old backup directories.  Use numbers
  115.    only; do not include units (MB), or any commas.
  116.  
  117.    If you always want the oldest image backup to be deleted, regardless of the free space
  118.    implications, use the word "oldest" here instead of a number (use with caution!).
  119.  
  120.    If you don't want old backups to be deleted automatically at all, use Space=0, or leave the
  121.    setting blank.  Please note that if you do this, you must manually make sure that enough space
  122.    exists on the target hard drive before attempting to save a new backup to that hard drive.
  123.  
  124.    Examples:
  125.  
  126.       set Space=0
  127.       set Space=5120
  128.       set Space=20480
  129.       set Space=oldest
  130.       set Space=
  131.  
  132.    More Information:
  133.    -----------------
  134.  
  135.    When you use these scripts to save images to a hard drive, the (included) IsFree.exe utility uses
  136.    the value you supply here to determine if the target hard drive has at least that much free space
  137.    available (in megabytes).  If so, the IFW batch process simply continues.  If IsFree.exe
  138.    determines that less free space exists on the target hard drive than the number you specify here,
  139.    the scripts begin removing old backups, one set at a time.  The oldest backups are deleted first,
  140.    and IsFree.exe checks the amount of free space available after each deletion.
  141.  
  142.    If you specify Space=oldest, rather than the number of megabytes that must be free, the scripts
  143.    will delete the oldest backup set each time they are run.  This is true even if the current
  144.    imaging process fails; so be careful if you are using Space=oldest option and retry an imaging
  145.    process several times.
  146.  
  147. ####################################################################################################
  148.  
  149. set TargetOpticalDrive=
  150.  
  151.    ** This setting is required when saving images to an optical drive.
  152.  
  153.    If you are saving images to an optical disc, specify the appropriate optical drive number here.
  154.    If you are unsure what the optical drive number is, run "IMAGEW.EXE /R /CD" from a command line.
  155.    If you are saving images to a hard drive, this option must be left blank!
  156.  
  157.    Examples:
  158.  
  159.       set TargetOpticalDrive=1
  160.       set TargetOpticalDrive=2
  161.       set TargetOpticalDrive=
  162.  
  163. ####################################################################################################
  164.  
  165. set IFWScriptPath=
  166.  
  167.    ** This setting is optional, regardless of where images are to be saved.
  168.  
  169.    If the file IFWv2.cmd resides in the same directory as Profile.cmd, you can leave this option
  170.    blank.  Othewise, you must specify the full path to IFWv2.cmd, including the file name itself.
  171.    If you have renamed IFWv2.cmd, you must specify its full path, including file name, regardless of
  172.    where it resides.  Omit quotation marks in all cases.
  173.  
  174.    Examples:
  175.  
  176.       set IFWScriptPath=C:\Program Files\Image for Windows\IFWv2.cmd
  177.       set IFWScriptPath=C:\Scripts\IFWv2.cmd
  178.       set IFWScriptPath=
  179.  
  180. ####################################################################################################
  181.  
  182. set IFWLogPath=
  183. set AppendToLog=
  184.  
  185.    ** These settings are optional, regardless of where images are to be saved.
  186.  
  187.    Specify the path and name to be used for the IFW log that is created by these command scripts.
  188.    Omit quotation marks.  If you do not set this option at all, no logging will be performed.
  189.  
  190.    You can use the BackupParentDir and/or ImageName variables for IFWLogPath (e.g.
  191.    %BackupParentDir%\%ImageName%.log).  If you use BackupParentDir, however, please ensure that the
  192.    directory specified by BackupParentDir exists before the script is run.  This is because if the
  193.    BackupParentDir directory doesn't exist when the script first runs, that directory will be
  194.    created, but the "Image for Windows batch process started" message will not get logged.
  195.  
  196.    Use AppendToLog=1 if you want the log file to be appended to each time the IFW batch
  197.    process is run.  If you want the log file to be overwritten instead, leave the AppendToLog
  198.    option blank.
  199.  
  200.    Please note that if you allow a given log file to be appended to, you will need to clear it out
  201.    manually from time to time.  The scripts will never delete any log file content.
  202.  
  203.    Examples:
  204.  
  205.       set IFWLogPath=C:\Program Files\Image for Windows\IFW.log
  206.       set IFWLogPath=D:\Backups\Windows.log
  207.       set IFWLogPath=E:\Images\%ImageName%.log
  208.       set IFWLogPath=%BackupParentDir%\%ImageName%.log
  209.       set IFWLogPath=%TEMP%\IFW.log
  210.       set AppendToLog=1
  211.       set AppendToLog=
  212.  
  213. ####################################################################################################
  214.  
  215. set PromptBeforeRun=
  216. set PromptText=
  217. set PromptTimeout=
  218.  
  219.    ** These settings are optional, regardless of where images are to be saved.
  220.  
  221.    Use PromptBeforeRun=1 to have a dialog appear, prompting you to continue or exit before
  222.    IFW runs.  Use PromptBeforeRun=0 (or leave it blank) to avoid being prompted, and have
  223.    IFW run automatically.
  224.  
  225.    Important:  If this batch file will run as a scheduled task, use PromptBeforeRun=0.
  226.  
  227.    If you use PromptBeforeRun=1, you should also configure the PromptText= option, keeping in
  228.    mind that the prompt will ask a Yes/No question (based on whether the script should/should
  229.    not continue).
  230.  
  231.    Using PromptTimeout=X, where X is a non-zero positive integer, results in the prompt being
  232.    automatically dismissed after X seconds.  If the prompt times out in this manner, a Yes
  233.    response is implied.
  234.  
  235.    Examples:
  236.  
  237.       set PromptBeforeRun=0
  238.       set PromptBeforeRun=1
  239.       set PromptText=Backup the Windows partition now?
  240.       set PromptText=Do you want to run the Image for Windows batch process for the '%ImageName%' image?
  241.       set PromptTimeout=10
  242.  
  243. ####################################################################################################
  244.  
  245. set NotifyComplete=
  246.  
  247.    ** This setting is optional, regardless of where images are to be saved.
  248.  
  249.    Use NotifyComplete=1 to receive a dialog that notifies you of IFW completion, whether IFW
  250.    completes successfully, or encounters an error.  Use NotifyComplete=2 to receive a dialog
  251.    only if IFW completes with an error.  Finally, use NotifyComplete=0 (or leave it blank) to
  252.    prevent a dialog from appearing, regardless of whether IFW encountered an error or not.
  253.    Configure with care.
  254.  
  255.    Please note that you will always be notified of errors that prevent IFW from running in the first
  256.    place, such as script configuration errors, not enough space on the target, and so on.
  257.  
  258.    Examples:
  259.  
  260.       set NotifyComplete=0
  261.       set NotifyComplete=1
  262.       set NotifyComplete=2
  263.  
  264. ####################################################################################################
  265.  
  266. set NotifyNormalTimeout=
  267. set NotifyErrorTimeout=
  268.  
  269.    ** These settings are optional, regardless of where images are to be saved.
  270.  
  271.    Using NotifyNormalTimeout=X, where X is a non-zero positive integer, results in
  272.    notification dialogs being automatically dismissed after X seconds, if the IFW batch
  273.    process completes without error.
  274.  
  275.    Using NotifyErrorTimeout=X, where X is a non-zero positive integer, results in
  276.    notification dialogs being automatically dismissed after X seconds, if the IFW batch
  277.    process completes with an error.  Configure with care.
  278.  
  279.    The NotifyNormalTimeout setting does nothing unless you also use NotifyComplete=1.  The
  280.    NotifyErrorTimeout setting does nothing unless you also use either NotifyComplete=1
  281.    or NotifyComplete=2.
  282.  
  283.    Please note that some preeminent errors (e.g. those that occur before the main IFW script
  284.    has even run) cannot be set to timeout.
  285.  
  286.    Examples:
  287.  
  288.       set NotifyNormalTimeout=5
  289.       set NotifyNormalTimeout=600
  290.       set NotifyErrorTimeout=300
  291.       set NotifyErrorTimeout=900
  292.  
  293. ####################################################################################################
  294.  
  295. set RunPriorXX=
  296. set RunAfterAlwaysXX=
  297. set RunAfterCondXX=
  298.  
  299.    ** These settings are optional, regardless of where images are to be saved.
  300.  
  301.    Using the RunPriorXX= entries, you can supply a series of command lines to be executed before
  302.    IFW runs.  If you want the batch process to wait for the command to complete before continuing
  303.    (i.e. before any other RunPriorXX entries, or IFW itself, runs), you should generally use the
  304.    /WAIT parameter with the START command (e.g. "START "" /WAIT <command>").  Run the command
  305.    "START /?" (without quotation marks) from a command prompt for more information on using the
  306.    START command.
  307.  
  308.    Using the RunAfterAlwaysXX= entries, you can supply a series of command lines to be executed
  309.    after IFW runs, whether it completes with or without an error (i.e. always).
  310.  
  311.    Using the RunAfterCondXX= entries, you can supply a series of command lines to be executed
  312.    after IFW runs, but only if it completes without an error (i.e. conditionally).
  313.  
  314.    Any of these which are not used should be left blank (e.g. "set RunPriorXX="), or preceded with
  315.    a double colon or "rem " (e.g. "set RunAfterAlways01=::<command line>" or
  316.    e.g. "set RunAfterAlways01=rem <command line>").
  317.  
  318.    If you want to use a command line that will include the path of the image to be created, use the
  319.    string "BackupChildDir" without--yes, WITHOUT!--enclosing it in percent symbols (as you normally
  320.    would for a variable).  Please refer to the example using TBIView.exe below.
  321.  
  322.    If you wish to run a separate script using these settings, you may want to run CMD.EXE and pass
  323.    the script as a parameter to it (e.g. START "" /WAIT CMD.EXE /C "D:\SCRIPTS\RUNTHIS.CMD").
  324.    Please refer to the examples below.
  325.  
  326.    Examples:
  327.  
  328.       set RunPrior01=start "" /wait chkdsk /f /v /x %TargetDrive%:
  329.       set RunPrior02=start "" /min /wait net pause "Task Scheduler"
  330.       set RunAfterAlways01=start "" /min net continue "Task Scheduler"
  331.       set RunAfterAlways02=start "" Notepad.exe "%IFWLogPath%"
  332.       set RunAfterCond01=start "" "C:\Program Files\TBIView\TBIView.exe" "%BackupParentDir%\BackupChildDir\%ImageName%" /CreateIdx
  333.       set RunAfterCond02=start "" /wait cmd.exe /c "D:\Batch Files\Script.cmd"
  334.       set RunAfterCond03=
  335.  
  336. ####################################################################################################
  337.  
  338. Copyright (c) 2008 TeraByte, Inc.  All Rights Reserved.
  339.  
  340. End of document
  341.