Author |
Message |
jblender
Joined: 29 Jun 2006 Posts: 3
|
Posted: Fri Jun 30, 2006 8:22 pm Post subject: Using environment variables in profile and vvlauncher |
|
|
I'd like to make a generic FSF file so I can easily install it along with ViceVersa on different machines using a custom MSI file. I plan on backing up everyone's My Documents folder to a shared network location. To make this easy I'd like to be able to set the source in the profile to "%userprofile%\My Documents" and the target to "%homedrive%\My Documents Backup\".
The problem is that the variables are not being resolved and I get a "path does not contain a drive indication" error. A similar error occurs in VVlauncher when you try to use a variable in the path to the profile. Any ideas on how I could make this work?
Thanks,
James |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Sat Jul 01, 2006 9:34 am Post subject: |
|
|
Hello,
in ViceVersa you need to use < instead of %
so "<userprofile>\My Documents" instead of "%userprofile%\My Documents"
and "<homedrive>\My Documents Backup\" instead of "%homedrive%\My Documents Backup\" _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
Guest
|
Posted: Sun Jul 09, 2006 1:48 pm Post subject: |
|
|
I have a batch file that creates an environment variable named latest_folder and it does not appear to work with ViceVersa. I have tried with both <latest_folder> and %latest_folder% in the source folder path and neither work. So if I have "S:\~snap\<latest_folder>\servbackups\" as the source and click compare I get the error message " [ERROR] Source: "S:\~snap\<latest_folder>\servbackups\", invalid parameter syntax, unknown parameter <latest_folder>"
If I open a command promt and do a "dir s:\~snap\%latest_folder%" it will display the content of the dir. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
|
Back to top |
|
|
Guest
|
Posted: Wed Jul 26, 2006 12:08 am Post subject: |
|
|
were you able to get this to work? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
|
Back to top |
|
|
|