This file does exists
$(_USTN_USER)$(USERNAME)/hbc.upf)
This:
%if exists ($(_USTN_USER)$(USERNAME)"/hbc.upf")MS_UserPREFSEED = ($(_USTN_USER)$(USERNAME)/hbc.upf) %elseMS_UserPREFSEED = ($(_USTN_USER)/hbc.upf)%endif
or this
%if exists ($(_USTN_USER)$(USERNAME)/hbc.upf)MS_UserPREFSEED = ($(_USTN_USER)$(USERNAME)/hbc.upf) %elseMS_UserPREFSEED = ($(_USTN_USER)/hbc.upf)%endif
$(_USTN_USER) = Q:\workspace\users\
$(USERNAME) = h1234
if Q:\workspace\users\h1234\hbc.upf exists why does the if statements above not set MS_UserPREFSEED = Q:\workspace\users\h1234\hbc.upf
Any ideas would be appreciated?
Tim,
Thanks for your input. I was able to get the syntax working as expected. It helped to change one of the hbc.upf to hbc1.upf. I then search all my config files for MS_UserPREFSEED and made sure that it was set only in my site.cfg file. I change the syntax to the following:
%if exists ($(_USTN_USER)$(USERNAME)/hbc1.upf)
MS_UserPREFSEED = $(_USTN_USER)$(USERNAME)/hbc1.upf
%else
MS_UserPREFSEED = $(_USTN_USER)/hbc.upf
%endif
I have been working on this issue when time permits for sometime. Thank you so much!
Roland
V8i SS4 v.08.11.09,829AECOsim BD V8i
Answer Verified By: Roland
the double quotes you have in the first line are not needed so I would go with the second line you have.
Timothy Hickman
CADD Manager | CADD Department
timothy.hickman@colliersengineering.com
Main: 877 627 3772|
1000 Waterview Drive Suite 201 | Hamilton, New Jersey 08691
Tim can you tell me which syntax to use.
%if exists ($(_USTN_USER)$(USERNAME)"/hbc.upf")
or
%if exists ($(_USTN_USER)$(USERNAME)/hbc.upf)
Then I will do a debug. It seems that the end result is always my last line in the if statement.
what does a DEBUG show ?
I think the issue is in the following line:
All the examples for use in the configuration files look to see if a variable exists not to see if a file exists on the network. What I am trying to do is set the upf seed file to a specific file if it exists on the network otherwise I want the upf seed file set to else statement.
I have not had any luck with checking to see if a file exists on the network to set the upf file.