Good idea, but yes, I need it to run on the client. Also, from both a Windows U2 Host and a Unix U2 Host
Doug -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Edward Brown Sent: Friday, May 28, 2010 10:07 AM To: U2 Users List Subject: Re: [U2] wIntegrate equivalent of System BuilderTU.CLIENT.GETENVsubroutine Except that runs on the server, not the users PC. Sorry! Ed -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Edward Brown Sent: 28 May 2010 16:05 To: U2 Users List Subject: Re: [U2] wIntegrate equivalent of System Builder TU.CLIENT.GETENVsubroutine You can PCPERFORM "SET CCPath" CAPTURING ANS Which will set ANS to something like "CCPath=C:\whatever" Ed (obviously only works on Windows, although similar approach should work on unix) -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Farmer Sent: 28 May 2010 15:52 To: U2 Users List Subject: [U2] wIntegrate equivalent of System Builder TU.CLIENT.GETENVsubroutine For all of you multiple platform developers - A query: I have need to duplicate some code I wrote in System Builder in a wIntegrate environment. System Builder has a subroutine called TU.CLIENT.GETENV. I use this subroutine to look up an environment variable on a user's PC so I know where a program I need to execute is loaded. I am not able to find an equivalent command using wIntegrate subroutines. Not being a wIntegrate programmer, I resorted to reading all 600 pages of the wIntegrate Host Subroutines Reference manual. Quite a barn burner! I could not put it down. But seriously, I need a way to look at the user's environment settings and pull the value for a specific setting. For example, under System Builder, I would have this code CALL TU.CLIENT.GETENV("CCPath",ProgramPath) Command = '&1"':ProgramPath:'\CCEntry.exe"' CALL TU.EXECUTE.SHELL(Command,'') Under wIntegrate, I found the WIN.PCRUN subroutine (or WIN.PCRUNS2), so I know I can run the program, but I do not know how to get the environment setting or where the program is installed. Any help is greatly appreciated! Doug Farmer BTW - I am not a System Builder developer either, so if there is a better way to execute a PC program in System Builder, don't hold back on telling me. You won't hurt my feelings! -------------------------------------------------------- This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of Epicor Software Corporation or any other company within its group. This message has been scanned for malware by Websense. www.websense.com _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ------------------------------------------------------------------------ ------------------- This e-mail and any attachment(s), is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the addressee, dissemination, copying or use of this e-mail or any of its content is prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail, any attachment(s) and any copies. All liability for viruses is excluded to the fullest extent permitted by law. It is your responsibility to scan or otherwise check this email and any attachment(s). Unless otherwise stated (i) views expressed in this message are those of the individual sender (ii) no contract may be construed by this e-mail. Emails may be monitored and you are taken to consent to this monitoring. Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 01628868 Both companies are registered in England and Wales and each has its registered office at 2 Burston Road, Putney, London, SW15 6AR. ------------------------------------------------------------------------ ------------------- _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users -------------------------------------------------------- This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of Epicor Software Corporation or any other company within its group. _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users