Author |
Message |
hawkun
Joined: 01 Apr 2011 Posts: 15 Location: Lund, Sweden
|
Posted: Wed Apr 20, 2011 3:20 pm Post subject: AppData environment variable doesn't work on Server 2003 |
|
|
Hi,
I'm using the AppData environment variable in the Source path (<appdata>), but it doesn't seem to expand correctly on Windows Server 2003. It works just fine on Server 2008, Windows 7 etc.
From the log:
Code: | 2011-04-20 17:11:58 : [ERROR] Source: "<APPDATA>\VVEngine\", invalid parameter syntax, unknown parameter <APPDATA>
2011-04-20 17:11:59 : Exit Code: 13. Source folder not found. [ERROR]
|
I've checked the variable from the command prompt (echo %appdata%), and it seems to be set to the correct value.
The reason for using the variable is that I want the same profile to work on different computers (different OS).
How to fix this?
Thanks! |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Sat Apr 23, 2011 7:06 am Post subject: |
|
|
Hi, that's strange, it works on my 2003... can you try running a custom script before ViceVersa (profile settings -> advanced settings) and check the appdata value?
thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
hawkun
Joined: 01 Apr 2011 Posts: 15 Location: Lund, Sweden
|
Posted: Tue Apr 26, 2011 9:41 am Post subject: |
|
|
I solved the problem. It turned out I ran the VVEngine service as one account (local administrator), and was logged on to the server with another (domain administrator). I was handling the scheduled profiles as domain administrator so the settings XML file probably got stored in another "<appdata>\VVEngine" folder than expected.
When VVEngine runs the profile it looks for the non existing source folder "<appdata>\VVEngine". Not finding the source folder ("VVEngine") seems to make <appdata> not expand to the correct value (it seems to be ""), resulting in ViceVersa to generate a somewhat misleading error message (syntax error).
I changed the VVEngine service to run as domain administrator and now it works like a charm. |
|
Back to top |
|
|
hawkun
Joined: 01 Apr 2011 Posts: 15 Location: Lund, Sweden
|
Posted: Thu Aug 25, 2011 8:06 am Post subject: |
|
|
Hm.. not working so well after all.
Because the folder where VVEngine stores application data is %user% dependent I have to use <appdata> in the path in my ViceVersa profile. But to make <appdata> work I have to be logged in to the machine, even if VVEngine runs as a service and don't need anyone to be logged in.
The VVEngine service runs as "domain administrator", but if I'm not logged in as "domain administrator" at the machine ViceVersa seems to expand <appdata> to "" instead of the correct "domain administrator" appdata folder.
Possible solution 1: You correct this in an VVEngine/ViceVersa update.
Possible solution 2: You give me instructions how to change the path to the folder where VVEngine stores its application data. Then I can select a folder that is not %user% dependent, and the whole problem will be gone .
Thanks! |
|
Back to top |
|
|
|