Drive Notify
Contents

Introduction

Installation

Setup

Using Drive Notify

Adding a Drive

Option Details

Sample Scenarios

Shortcuts for Testing

Drive Notify in a True Image Task

INI File - Global Options

INI File - Drive Options

INI File - Program Options

Contact Information

Introduction

Drive Notify is a program designed to allow you to be asked to connect your backup drive if it's not connected when a True Image backup task is run. Since the Acronis True Image family of programs pre/post-commands of a task don't support interactive commands (commands that require user input) or running programs that require a GUI, this isn't something that can be done directly with True Image.

Drive Notify gets around this problem. In addition to displaying a message and pausing the backup until the desired drive is connected, it can also be configured to automatically proceed with the backup if the drive is already connected or when it is connected without any further user intervention.

Installation

Drive Notify currently doesn't have an installer program and must be installed manually. Download the ZIP file and extract the contents into the folder in which you want Drive Notify installed. The recommended folder is DrvNotify in the root folder of the Windows drive. For example: C:\DrvNotify

If running Windows Vista or later, do not install Drive Notify into any User or System folder. This includes Program Files, Documents, Desktop, etc. Doing so will not allow the program to function properly. If you must run Drive Notify from this type of folder, you will need to give Everyone permission to access it. This can be done by right-clicking on the folder, selecting Properties and using the Security tab.
Get Drive Notify
 

Click here for the download link and information on the limitations of the free version.

Click here for information regarding the purchased version.

Testimonies

I highly recommend this great little program which is very easy to setup and use. I personally have used it for several months to always notify me as to when my backup storage drive needs to be attached. (Safety dictates it should not be attached when not in use.) I liked the program so well, I purchased the paid version for the convenience of using the AutoContinue feature. -- GroverH

Setup

Drive Notify needs to be running before the True Image backup task starts in order to function properly. This can be accomplished by adding a shortcut to DrvNotify.exe to the Programs >> Startup menu (recommended), starting the program manually or setting up the Windows Task Scheduler to start the program before the True Image task starts. Note that no program options are used when starting Drive Notify so it runs in the background.

Using Drive Notify

Once Drive Notify is running, you can run it again using options to have it display a message or wait for a drive to be connected. These are the options used in the pre-command of the True Image backup task. You can also setup shortcuts with these options to use for testing.

The options available are:

/wait [drive]
/wait:exit [drive]
/exit

Both the /wait and /wait:exit options can take a second option to specify the desired drive. If no drive value is specified, Drive Notify will run in manual mode and use the default settings.

Here is an example of the message displayed using the /wait option:

4.1

Here is an example of the message displayed using the /wait wd320 option:

4.2

All messages and drive settings are contained in the DrvNotify.ini file and can be edited as desired.

Adding a Drive

To add a custom drive for use with Drive Notify, you must edit the DrvNotify.ini file and add a new section for it. The section heading is the name you're giving the drive. For example: You have a Western Digital 320GB USB drive and you want to use it with Drive Notify. You decide to name it wd320 and it is assigned the J: drive letter when connected. You want Drive Notify to automatically proceed with the backup. In this example, you would add the following section to the DrvNotify.ini file:

[wd320]
Message=Please connect your Western Digital 320GB drive.
AutoContinue=J:
Please note that the drive value you use can not contain spaces.

The message you want displayed needs to be typed in all on one line (it will wrap in the displayed message box). If AutoContinue is not specified or it is set to 0 (zero), the AutoContinue function will be disabled and you will need to click the Proceed button after connecting the drive.

If the AutoContinue option is used, you will need to create a file named drvnotify.txt in the root folder of the drive. A sample file is included for wd320. The file is just a standard text file and can be created using the Windows Notepad program. It just needs to contain the drive value (wd320, in this example). With v1.2.3 or later, the drvnotify.txt file can contain multiple drive values (one per line). This allows the same drive to be used with different Drive Notify settings (different messages, options, etc.).

When the AutoContinue option is used, it functions in the following way: When Drive Notify is called, it looks for the drive specified (in this example, J:). If it doesn't find the drive, it waits. If it finds the drive, it looks for the drvnotify.txt file in the root folder. If it finds the file, it reads it and checks if it's the desired drive (in this example, wd320). If it isn't a match, the program continues to wait. If it is a match, the program will continue automatically. Using this method allows multiple drives to use the same drive letter and still be detected as separate drives for backup purposes.

AutoContinue also supports UNC paths (for example, \\MyServer\backups). To use this option, specify the UNC path instead of a drive letter. The drvnotify.txt file must exist on the UNC path and the user must have correct access permissions for the share. (Requires v1.2.3c or higher.)

AutoContinue=\\MyServer\backups
Option Details

Here is more detailed information on the Drive Notify options.

/wait [drive]

This option tells Drive Notify to display the message associated with the drive specified or the default message if no drive is specified. If the AutoContinue option is not used, you must click the Proceed button to allow the backup to continue.

/wait:exit [drive]

This option functions exactly the same way as the /wait option except that it exits the Drive Notify program after it's done. This option is provided for those users that don't want extra programs running in the background. By using the Windows Task Scheduler to start Drive Notify before the True Image task starts and then using this option, the Drive Notify program will only be running when needed.

/exit

This option tells Drive Notify to exit. It can be run as a post-command in a True Image task or from a shortcut to exit the program. Note that you can also exit the program by running it again with no options and selecting to close it when asked.

 

 

Drive Notify can also be used to run a program instead of checking for a drive. This can be accomplished by using the following options:

/run [program]

This option tells Drive Notify to run the program associated with the program specified. The backup will continue normally after the program has launched or exited (depending on the setting selected). Note that no error checking is done to determine if the program exits without errors. Refer to the INI File - Program Options section for more details.

/run:exit [program]

This option functions exactly the same way as the /run option except that it exits the Drive Notify program after it's done. This option is provided for those users that don't want extra programs running in the background.

Sample Scenarios

Here are several sample scenarios for using Drive Notify.

Scenario #1: Drive Notify is setup to run when the computer starts. Several backup tasks are created and Drive Notify is called using the /wait [drive] option.

Scenario #2: The user only runs one backup task per day and doesn't want Drive Notify to be left running in the background. Drive Notify is setup to run when the computer starts.
The task is setup to call Drive Notify using the /wait:exit [drive] option. This exits Drive Notify when the backup starts. This method assumes that the computer is started every day before the task runs. Otherwise, the Drive Notify program will not be restarted.

Scenario #3: The user doesn't want Drive Notify to be running in the background, but has one or more backups scheduled. Drive Notify is setup to be started by the Windows Task Scheduler before the True Image task runs and the /wait:exit [drive] option is used. For example: A backup task is scheduled to start at 9:00am. Windows Task Scheduler is setup to start Drive Notify at 8:55am. The True Image task runs at 9:00am, calls Drive Notify which then exits when finished.

Shortcuts for Testing

You can test Drive Notify by testing the command when setting up a True Image task or by setting up shortcuts that contain the desired options. Below are several examples of shortcuts:

Using /wait

7.1

Using /wait wd320

7.2

If you have problems and need to start over fresh, make sure to check the Task Manager and verify that DrvNotify.exe is not running. If it is, terminate all copies of the DrvNotify.exe program before you start testing again. Also, delete the DrvWait.ini file (if it exists) in the Drive Notify installation folder. This will make sure that the testing is beginning from a clean starting point.

Drive Notify in a True Image Task

Here is a screenshot of Drive Notify setup in the pre-command section of a True Image backup task.
In this example, it's using the /wait wd320 option:

8.1

Please note that the Do not perform operations until the command's execution is complete option needs to be checked (the default). Otherwise, True Image won't wait for the drive to be connected and the task will fail.

If you test the command using the Test command button, Drive Notify should work properly if properly configured. True Image will pop-up a Command Prompt window during the test (just ignore it).

INI File - Global Options

The following global program options can be set in the [Options] section of the DrvNotify.INI file. Default values are shown.

[Options]
ShowSplashScreen=1
CloseAutoPlay=1
CloseAutoPlayDelay=3
LogFile=1
WindowSize=0

ShowSplashScreen: 0=Disabled, 1=Enabled. Displays the starting and exiting splash screen when Drive Notify is run or exited.

CloseAutoPlay: 0=Disabled, 1=Enabled. Drive Notify will attempt to close the Windows Auto Play window that opens automatically when the drive is connected to the system.

CloseAutoPlayDelay: The maximum number of seconds Drive Notify will wait before continuing if the Auto Play window can't be closed.

LogFile: 0=Disabled, 1= Enabled. Writes log events to the DrvNotify.log file. Can be useful for troubleshooting or when requesting support. Requires v1.2.3c or higher.

WindowSize: Size of message window. Valid values are 0 through 8. The height of the message window increases 50 pixels times the number specified. For example, 2 will increase the height by 100 pixels; 5 by 250 pixels. Can be useful if long messages must be displayed. This option currently only takes effect when the program is first run. If you have Drive Notify running in the background, you would need to exit it and restart it to have the option applied. Requires v1.2.4 or higher.

INI File - Drive Options

In addition to the Message and AutoContinue options detailed previously, the following options are supported for each drive section in the file. The section heading you use is the name of the drive (for example, [wd320]).

[wd320]
Message=Plug in your WD drive so the backup can continue.
AutoContinue=J:
AutoContinueDelay=0
AutoContinueDetectDelay=0
ScanForNewHardware=0
AutoAbort=0
ManualAbort=0
 
RunProgram=
RunParameters=
RunWorkingDir=
RunWaitForExit=0
 
RunAAProgram=
RunAAParameters=
RunAAWorkingDir=
RunAAWaitForExit=0

AutoContinueDelay: Use this option to specify the number of seconds after the drive is detected before allowing TI to continue. This is necessary for some drives that are not completely ready enough for TI to access, but are detected by Drive Notify. The default is no delay.

AutoContinueDetectDelay: Use this option to specify the maximum number of seconds to delay before determining if the drive is ready or unavailable. This can be helpful when auto-abort is used and the drive needs time to wake up. The default is no delay. Requires v1.2.6 or higher.

ScanForNewHardware: 0=Disabled, 1=Enabled. Supported on XP only. Enabling this option may allow a problem USB drive to be detected (for example, the drive won't show up until a device refresh is done). Requires v1.2.3 or higher.

AutoAbort: 0=Disabled, 1=Enabled. Drive Notify will automatically abort if the specified drive isn't found. The user will not be prompted to connect the drive. The default is disabled. Requires v1.2.3d or higher.

ManualAbort: 0=Disabled, 1=Enabled. Adds an Abort button to the message window. This allows the user to manually abort the backup if the drive is not ready and will not be connected. The default is disabled. Requires v1.2.3e or higher.

Run... options: Specifies a program to run when the drive is connected. See the following section for details on these options. Requires v1.2.3 or higher.

RunAA... options: Specifies a program to run when Drive Notify auto-aborts the backup. These options are configured in the same way as the Run... options. See the following section for details. Requires v1.2.5 or higher.

INI File - Program Options

To add a program for use with Drive Notify, you must edit the DrvNotify.ini file and add a new section for it. The section heading is the name you're giving the program. For example: You want to run the Notepad program and display a text file. You decide to name it mynote. In this example, you would add the following section to the DrvNotify.ini file:

[mynote]
RunProgram=notepad.exe
RunParameters=e:\mydocs\backupnote.txt
RunWorkingDir=
RunWaitForExit=0
Please note that the program value you use can not contain spaces.

RunProgram: Specifies the program to run. If the program isn't in the default Windows search path, specify the complete path.

RunParameters: Specifies any applicable program parameters (if any). These will depend on the program being run.

RunWorkingDir: Specifies the working directory (if any) for the program.

RunWaitForExit: 0=Disabled, 1=Enabled. Enable to have Drive Notify wait for the program to finish running and exit before proceeding. The default is disabled.

Contact Information

If you have any questions or problems with the program, please contact: support@themudcrab.com

This website is hosted and maintained by Purviance Computer Services.