Basically, the path to run an @command([Execute] is different for these two clients.
is there a way to trap the “Unable to locate program error” and thus using the correct path if this error appears.
i tried @if(@isError(@command([Execute]…) but that didnt work.
Also, if its not possible to trap the error in Formula, can it be done in LS?
Thanks
ST
Subject: @Platform…how to differentiate between an XP client and an NT client.
In Notes 6+ you can check the path with @FileDir. I like what Damien did with @Stuff, don’t you?
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
I haven’t seen what Damien’s done on @stuff??
Can you post the link here?
Thanks for pointing me to @fileDir! I’ve used it before but I was stuck on checking for O/S types for some reason. Worked perfectly.
ST
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
Damien Katz ( http://www.damienkatz.net ) is the young fellow who rewrote the Formula language engine for ND6 – and decided to throw in things like looping and so forth. I’d say he did a pretty good job of it, wouldn’t you?
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
@For is the single most important feature in the whole notes6 formula language, if you ask me. It brought so much needed functionality to the notes client.
I started reading the rewrite article and its pretty good so far.
Stan, I think I was a little confident when I said it worked perfectly. I was assuming it would, actually. Now that im trying to get it to do what i want im a little stumped.
@fileDir returns the path. If I give it an explicit path, like c:\progra…\micr…\explore\explorer.exe it will return me the path without the filename, even if the path does not exist…so its not really helping me with my prob.
Am I missing something obvious here?
ST
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
You know, I really ought to read before posting.
You should be able to tell the difference between NT and 2000/XP using [Specific] in @Platform:
os := @Platform(Specific]);
@If(os[1] = “Windows/NT” & @ToNumber(os[2])>=5);;)
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
I thought of that, and Specific reports Windows/NT for win2k, nt, and xp (but i beleive its reporting the server’s O/S if the database is on a server, which in thise case our server is running win2k. my client is XP and when i run [specific] it still says NT!
looks like this is going to be a bigger problem then i originally thought…
ST
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
Tried @BrowserInfo(“Platform”)? It should return “WinNT” for NT 3.X and NT4, but “Unknown” for Win2K and WinXP. (Can you tell I’m grasping at straws?)
Subject: RE: @Platform…how to differentiate between an XP client and an NT client.
Great! now that works. I use one path if @browserinfo(“Platform”) returns “Unknown” and another path if it returns “WinNT”.
Thanks for all your help.
ST