You are here

error using @volume@ to substitute for drive letter

3 posts / 0 new
Last post
flippertie
flippertie's picture
Offline
Last seen: 11 years 1 month ago
Joined: 2010-05-26 10:44
error using @volume@ to substitute for drive letter

I have Toucan on a USB drive (label USB1TB), and a working backup job for the My Documents folder.

I want to make the job flexible using variables so it's not dependant on the PC its used on and other peripherals etc.

When target drive is: F:\Backups\LaptopMyDocs the job works

I changed this to: @volume@\Backups\LaptopMyDocs and hit Preview.

The displayed drive changes to: USB1TB\Backups\LaptopMyDocs, but on Preview all files and folders are blue (= will be copied) which is incorrect - they are already on the drive.

If I run the job all copies fail with "(error3: the system cannot find the path specified)"

I inserted a colon: @volume@:\Backups\LaptopMyDocs. This also fails,- but does not even find the drive.

Can someone explain what i'm missing please?

Thanks!

flippertie
flippertie's picture
Offline
Last seen: 11 years 1 month ago
Joined: 2010-05-26 10:44
@docs@ in source works

Forgot to mention - replacing the source folder with @docs@ works perfectly.

flippertie
flippertie's picture
Offline
Last seen: 11 years 1 month ago
Joined: 2010-05-26 10:44
Solved. Doh!

Using @drive@ instead of @volume@ works like a charm.

But while I have your attention :)...

Can someone help me with regex please?

I want to be able to extract the Machine and user name from a 'My Documents' folder string.

ie If source folder is

C:\Documents and Settings\Joe User\My Documents (on SharedPC)

I'd like the Destination to be parsed as

@drive@\SharedPC\Joe User\

I know there's a link in the help facility - but it doesn't do anything when I click it... and I don't know anything about RegEx

Thanks!

Log in or register to post comments