Author |
Message |
billm
Joined: 24 Apr 2007 Posts: 7
|
Posted: Tue Dec 29, 2009 12:28 pm Post subject: Removeable drives |
|
|
Is there any way to set up a profile for syncing between hard disk and removeable disc so that VVPro copes with the removeable drive picking up a different drive letter from previously when it is inserted in the pc's USB port? |
|
Back to top |
|
|
Guest
|
Posted: Thu Jan 07, 2010 2:37 pm Post subject: Re: Removeable drives |
|
|
billm wrote: | Is there any way to set up a profile for syncing between hard disk and removeable disc so that VVPro copes with the removeable drive picking up a different drive letter from previously when it is inserted in the pc's USB port? |
Sorry if I jump in, but nobody answered, and I *sort of* solved this problem, but it took some wsh programming. The ViceVersa config file (.fsf) is just a plain text file, and the entries for the source and target folders are at the very beginning. The challenge is to change the target folder to reflect the drive letter of the USB stick.
My way to do it is implement a windows script host (vbs) file and put it into the root of the USB stick, autostart functionality enabled via autorun.inf. The program runs as soon as the USB stick is plugged in, looks at it's own script path, and so I get a the current drive letter of my USB stick, because the script is always run from it's root directory.
Then my program uses the WMI interface to stop the VVlauncher service, changes the Target Folder entry in the fsf file, and starts the VVLauncher process again.
I guess this is the only way to do this, since USB drive letters may vary by design, and there is no way to track a specific USB sticks drive letters between sessions, logins or even different machines, and even if there was, it would not help, since the drive letter may have to change, depending on which other USB devices are already plugged in when the USB stick is plugged in.
Drawbacks:
* wsh and WMI programming experience needed
* works for admins only, since you need rights to start and stop services and write to the Viceversa profile settings file
* needs the AutoRun functionality enabled, many disable this to get rid of annoying autostarts.
* depending on the machine configuration, the Windows Script Host haves me confirm script execution, since wsh files are considered to contain potentially dangerous content. I guess I could probably get rid of this if I sign the wsh file, but that's just a guess.
Hope this helps,
Armin- |
|
Back to top |
|
|
billm
Joined: 24 Apr 2007 Posts: 7
|
Posted: Thu Jan 14, 2010 8:33 pm Post subject: |
|
|
Many thanks for this.
Bill |
|
Back to top |
|
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © phpBB Group
|