#240 Ability to change destination drive letter via viarable or o

open
nobody
None
5
2012-12-08
2012-12-08
Norm
No

Greetings,
Would it be possible to have a parameter within the .DSC file which indicates the drive path that should be used for the destination used in the B varaibable in each job set in the .DSC file. I use external portable drives for my archives and typically each .DSC file has 8 to 12 job sets in each that specify the various source folders to be sync'd. However the destination drive varies depending on the number of other external drives hooked to the system.
ANother alternative would be the ability to run an external program before the >DSC file is used to Analyze or Sync. I have a .VBS script (attached below) which can find the destination drive and do a Change Directory (CD) to that drive. But the script would need to be called from the application and DirSyncPro would have to allow a destination without a drive letter in the B specification.

Thanks,
Norm

================== Attached >VBS Script ================
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Wscript.Shell")
Set objEnv = objShell.Environment("PROCESS")
For Each objDrive in objFSO.Drives
If objDrive.IsReady Then
If objFSO.FileExists(objDrive.DriveLetter & ":\SyncProFiles\Archive.txt") Then
strPath = objDrive.Driveletter & ":"
objShell.Run """" & "CD " & strPath & """"
End If
End If
Next

Discussion