Terminal Server 2003. (Sorry about the wrong version information in the header, this is VFP8 SP1 not VFP9) workstations are Windows XP.
On terminal services c:\ is the terminal server local hard drive, not the remote hard drive. I have directories setup for each terminal services user as such:
c:\users\user1
c:\users\user2
The environment variable of username stores the terminal services client username for me so I can put the following in the client's desktop shortcut and it runs the correct config.fpw:
c:\profiler\pro32.exe -cc:\users\%username%\config.fpw
this runs config.fpw in the correct users directory as it should, however, I cannot get the environment variable to work inside of the config.fpw. I need to do the below:
EDITWORK=c:\users\%username%\tmp\
PROGWORK=c:\users\%username%\tmp\
SORTWORK=c:\users\%username%\tmp\
RESOURCE=c:\users\%username%\vfpuser.dbf
TMPFILES=c:\users\%username%\tmp\
But it only takes if I explicitly put in the folder as in:
RESOURCE = c:\users\user1\vfpuser.dbf
I am overlooking something obvious, can anyone see it? The environment variable of username in this example is 'user1' and the desktop shortcut works but the username system variable is not swapping to user1 in the config.fpw file itself.
TIA
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"