OK, I looked into posting AutoIt code in the FAQ, so here is the code:
AutoIt script: Go Backup.au3
#Region: Include
#include <Constants.au3>
#include <file.au3>
#include <array.au3>
#EndRegion
#Region: Declare
;Declare vars.
Dim $pid, $Path, $Drive, $Dir, $Name, $Ext
Dim $Programs, $FileList_array, $DOpus_dir, $dopusrt
Dim $Selected, $Path_new
#EndRegion
#EndRegion
#Region: Run
FindDOpus()
ChangeDrive()
#EndRegion
#Region: FindDOpus
Func FindDOpus()
;This finds installed path of DOpus and uses that path for running dopusrt.exe.
;Get path to program files folder.
$Programs = @ProgramFilesDir
;Get array of folders under Program Files.
$FileList_array = _FileListToArray($Programs, "*", 2)
;Loop through array to find DOpus.
For $i = 1 To $FileList_array[0]
If StringInStr($FileList_array[$i], "Directory Opus") Then
;When found, save path and location of dopusrt.exe, then exit loop.
$DOpus_dir = $Programs & "\" & $FileList_array[$i]
$dopusrt = $DOpus_dir & "\dopusrt.exe"
ExitLoop
EndIf
Next
EndFunc
#EndRegion
#Region: ChangeDrive
Func ChangeDrive()
$Selected = $CMDLINERAW
;Remove quote marks from string.
$Selected = StringReplace($Selected, '"', "")
;Split path into parts.
$Path = _PathSplit($Selected, $Drive, $Dir, $Name, $Ext)
;Reconstruct path to use E: drive and same $Dir.
$Path_new = "E:" & $Dir
;Run the Go <path> command in DOpus.
ShellExecute($dopusrt, " /cmd" & Chr(32) & "Go" & Chr(32) & '"' & $Path_new & '"')
EndFunc
#EndRegion
[quote="dick.girard"]I ended up creating a small app (using AutoIt) that I call "Go Backup.exe". It reads "{leftpath}" from DOpus. I then read the command line, parse and split the path, change the drive to "E:", then append the rest of the path to create a new path. The rest of the path is the same. I then execute the DOpus "Go " command from my exe using dopusrt.exe.
Now when I open a dual display, I click on the second display, R-click, and select the command. It works great.
I use this command in a context menu:
@runonce "\Go Backup.exe" {leftpath}
I called this context menu "Go Backup" under the > area from Settings > File Types.
If you want to try it out, tell me how to attach an exe. It's 300 KB. It should work if you have an E: drive. [I could make the drive letter selectable if needed.][/quote]