Discussion:
VFP Service
Chris Davis
2018-03-13 12:33:17 UTC
Permalink
Hi All

In the past I have followed this article

https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-application-as-a-service/

Does anyone have any advice about how to approach this on Server 2016 as I believe SRVANY is no longer an option.

Regards

Chris


--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@LO2P265MB0031.GBRP265.PROD.OUTLOOK.COM
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Alan Bourke
2018-03-13 12:39:43 UTC
Permalink
Well I'd approach it via the right tool for the right job, i.e. .NET :)

However there are other things like NSSM (http://nssm.cc/) that would probably work fine - this tool in particular was last updated mid-2017 so seems to still be active and should work on Server 2016.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@webmail.messagingengine.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Chris Davis
2018-03-13 12:43:12 UTC
Permalink
Thanks Alan I will give it a try, NSSM that is not .NET 😊



-----Original Message-----
From: ProfoxTech <profoxtech-***@leafe.com> On Behalf Of Alan Bourke
Sent: Tuesday, 13 March 2018 12:40
To: ***@leafe.com
Subject: Re: VFP Service

Well I'd approach it via the right tool for the right job, i.e. .NET :)

However there are other things like NSSM (http://nssm.cc/) that would probably work fine - this tool in particular was last updated mid-2017 so seems to still be active and should work on Server 2016.

--
Alan Bourke
alanpbourke (at) fastmail (dot) fm

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@webmail.messagingengine.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

Report [OT] Abuse: http://leafe.com/reportAbuse/***@webmail.messagingengine.com
_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@LO2P265MB0031.GBRP265.PROD.OUTLOOK.COM
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too
Dave Crozier
2018-03-13 14:22:05 UTC
Permalink
Chris,
This may be of help:

https://stackoverflow.com/questions/3582108/create-windows-service-from-executable

Dave Crozier
Software Development Manager
Flexipol Packaging Ltd.



---------------------------------------------------------------
This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. If you have received this e-mail in error you must not copy, distribute or take any action in reliance on it. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

Flexipol Packaging Ltd. has taken every reasonable precaution to minimise the risk of virus transmission through email and therefore any files sent via e-mail will have been checked for known viruses. However, you are advised to run your own virus check before opening any
attachments received as Flexipol Packaging Ltd will not in any event accept any liability whatsoever once an e-mail and/or any attachment is received.

It is the responsibility of the recipient to ensure that they have adequate virus protection.

Flexipol Packaging Ltd.
Unit 14 Bentwood Road
Carrs
Industrial Estate
Haslingden
Rossendale
Lancashire
BB4 5HH

Tel:01706-222792
Fax: 01706-224683
www.Flexipol.co.uk
---------------------------------------------------------------

Terms & Conditions:

Notwithstanding delivery and the passing of risk in the goods, the property in the goods shall not pass to the buyer until the seller
Flexipol Packaging Ltd. ("The Company") has received in cash or cleared funds payment in full of the price of the goods and all other goods agreed to be sold by the seller to the buyer for which payment is then due. Until such time as the property in the goods passes to the buyer, the buyer shall hold the goods as the seller's fiduciary agent and bailee and keep the goods separate from those of the buyer and third parties and properly stored protected and insured and identified as the seller's property but shall be entitled to resell or use the goods in the ordinary course of its business. Until such time as the property in the goods passes to the buyer the seller shall be entitled at any time

-----Original Message-----
From: ProFox <profox-***@leafe.com> On Behalf Of Chris Davis
Sent: 13 March 2018 12:33
To: ***@leafe.com
Subject: VFP Service

Hi All

In the past I have followed this article

https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-application-as-a-service/

Does anyone have any advice about how to approach this on Server 2016 as I believe SRVANY is no longer an option.

Regards

Chris


--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@LO2P265MB0031.GBRP265.PROD.OUTLOOK.COM
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@EX2010-A-FPL.FPL.LOCAL
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Dave Crozier
2018-03-13 14:25:44 UTC
Permalink
Chris,
The "Always Up" app mentioned at the bottom of the article is good and we have used it to run some VFP services accessing Exchange which were previously written in C#.

Dave Crozier
Software Development Manager
Flexipol Packaging Ltd.



---------------------------------------------------------------
This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. If you have received this e-mail in error you must not copy, distribute or take any action in reliance on it. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

Flexipol Packaging Ltd. has taken every reasonable precaution to minimise the risk of virus transmission through email and therefore any files sent via e-mail will have been checked for known viruses. However, you are advised to run your own virus check before opening any
attachments received as Flexipol Packaging Ltd will not in any event accept any liability whatsoever once an e-mail and/or any attachment is received.

It is the responsibility of the recipient to ensure that they have adequate virus protection.

Flexipol Packaging Ltd.
Unit 14 Bentwood Road
Carrs
Industrial Estate
Haslingden
Rossendale
Lancashire
BB4 5HH

Tel:01706-222792
Fax: 01706-224683
www.Flexipol.co.uk
---------------------------------------------------------------

Terms & Conditions:

Notwithstanding delivery and the passing of risk in the goods, the property in the goods shall not pass to the buyer until the seller
Flexipol Packaging Ltd. ("The Company") has received in cash or cleared funds payment in full of the price of the goods and all other goods agreed to be sold by the seller to the buyer for which payment is then due. Until such time as the property in the goods passes to the buyer, the buyer shall hold the goods as the seller's fiduciary agent and bailee and keep the goods separate from those of the buyer and third parties and properly stored protected and insured and identified as the seller's property but shall be entitled to resell or use the goods in the ordinary course of its business. Until such time as the property in the goods passes to the buyer the seller shall be entitled at any time

-----Original Message-----
From: ProFox <profox-***@leafe.com> On Behalf Of Chris Davis
Sent: 13 March 2018 12:33
To: ***@leafe.com
Subject: VFP Service

Hi All

In the past I have followed this article

https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-application-as-a-service/

Does anyone have any advice about how to approach this on Server 2016 as I believe SRVANY is no longer an option.

Regards

Chris


--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@LO2P265MB0031.GBRP265.PROD.OUTLOOK.COM
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@EX2010-A-FPL.FPL.LOCAL
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Chris Davis
2018-03-13 15:15:54 UTC
Permalink
Thanks Dave I have quickly tried the NSSM utility Alan mentioned and it works a treat as a replacement for SRVANY but I will check out the Always Up app as it sounds interesting.

-----Original Message-----
From: ProfoxTech <profoxtech-***@leafe.com> On Behalf Of Dave Crozier
Sent: Tuesday, 13 March 2018 14:26
To: ***@leafe.com
Subject: RE: VFP Service

Chris,
The "Always Up" app mentioned at the bottom of the article is good and we have used it to run some VFP services accessing Exchange which were previously written in C#.

Dave Crozier
Software Development Manager
Flexipol Packaging Ltd.



---------------------------------------------------------------
This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. If you have received this e-mail in error you must not copy, distribute or take any action in reliance on it. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

Flexipol Packaging Ltd. has taken every reasonable precaution to minimise the risk of virus transmission through email and therefore any files sent via e-mail will have been checked for known viruses. However, you are advised to run your own virus check before opening any attachments received as Flexipol Packaging Ltd will not in any event accept any liability whatsoever once an e-mail and/or any attachment is received.

It is the responsibility of the recipient to ensure that they have adequate virus protection.

Flexipol Packaging Ltd.
Unit 14 Bentwood Road
Carrs
Industrial Estate
Haslingden
Rossendale
Lancashire
BB4 5HH

Tel:01706-222792
Fax: 01706-224683
www.Flexipol.co.uk
---------------------------------------------------------------

Terms & Conditions:

Notwithstanding delivery and the passing of risk in the goods, the property in the goods shall not pass to the buyer until the seller Flexipol Packaging Ltd. ("The Company") has received in cash or cleared funds payment in full of the price of the goods and all other goods agreed to be sold by the seller to the buyer for which payment is then due. Until such time as the property in the goods passes to the buyer, the buyer shall hold the goods as the seller's fiduciary agent and bailee and keep the goods separate from those of the buyer and third parties and properly stored protected and insured and identified as the seller's property but shall be entitled to resell or use the goods in the ordinary course of its business. Until such time as the property in the goods passes to the buyer the seller shall be entitled at any time

-----Original Message-----
From: ProFox <profox-***@leafe.com> On Behalf Of Chris Davis
Sent: 13 March 2018 12:33
To: ***@leafe.com
Subject: VFP Service

Hi All

In the past I have followed this article

https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-application-as-a-service/

Does anyone have any advice about how to approach this on Server 2016 as I believe SRVANY is no longer an option.

Regards

Chris


--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@LO2P265MB0031.GBRP265.PROD.OUTLOOK.COM
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Tracy Pearson
2018-03-16 14:04:09 UTC
Permalink
An age ago, I researched, and wrote an FLL to allow a VFP program to become
a service.
VFP is not multithreaded, so having multiple things attempt to access it
didn't work out for me.
I changed it to be a C# service that uses multiple instances of a VFP COM
object.

A service is a nice idea, it can run even when a user hasn't logged in to
the system. It can be installed through an installer.
A scheduled task, does a lot of the same things. I don't know that it can be
setup via an installer.

For an in house project I have the network admin setup a scheduled task.
For production products we ship, it's C#.

YMMV,
Tracy

-----Original Message-----
From: ProfoxTech [mailto:profoxtech-***@leafe.com] On Behalf Of Chris
Davis
Sent: Tuesday, March 13, 2018 11:16 AM
To: ***@leafe.com
Subject: RE: VFP Service

Thanks Dave I have quickly tried the NSSM utility Alan mentioned and it
works a treat as a replacement for SRVANY but I will check out the Always Up
app as it sounds interesting.

-----Original Message-----
From: ProfoxTech <profoxtech-***@leafe.com> On Behalf Of Dave Crozier
Sent: Tuesday, 13 March 2018 14:26
To: ***@leafe.com
Subject: RE: VFP Service

Chris,
The "Always Up" app mentioned at the bottom of the article is good and we
have used it to run some VFP services accessing Exchange which were
previously written in C#.

Dave Crozier
Software Development Manager
Flexipol Packaging Ltd.



---------------------------------------------------------------
This communication and the information it contains is intended for the
person or organisation to whom it is addressed. Its contents are
confidential and may be protected in law. If you have received this e-mail
in error you must not copy, distribute or take any action in reliance on it.
Unauthorised use, copying or disclosure of any of it may be unlawful. If you
have received this message in error, please notify us immediately by
telephone or email.

Flexipol Packaging Ltd. has taken every reasonable precaution to minimise
the risk of virus transmission through email and therefore any files sent
via e-mail will have been checked for known viruses. However, you are
advised to run your own virus check before opening any attachments received
as Flexipol Packaging Ltd will not in any event accept any liability
whatsoever once an e-mail and/or any attachment is received.

It is the responsibility of the recipient to ensure that they have adequate
virus protection.

Flexipol Packaging Ltd.
Unit 14 Bentwood Road
Carrs
Industrial Estate
Haslingden
Rossendale
Lancashire
BB4 5HH

Tel:01706-222792
Fax: 01706-224683
www.Flexipol.co.uk
---------------------------------------------------------------

Terms & Conditions:

Notwithstanding delivery and the passing of risk in the goods, the property
in the goods shall not pass to the buyer until the seller Flexipol Packaging
Ltd. ("The Company") has received in cash or cleared funds payment in full
of the price of the goods and all other goods agreed to be sold by the
seller to the buyer for which payment is then due. Until such time as the
property in the goods passes to the buyer, the buyer shall hold the goods as
the seller's fiduciary agent and bailee and keep the goods separate from
those of the buyer and third parties and properly stored protected and
insured and identified as the seller's property but shall be entitled to
resell or use the goods in the ordinary course of its business. Until such
time as the property in the goods passes to the buyer the seller shall be
entitled at any time

-----Original Message-----
From: ProFox <profox-***@leafe.com> On Behalf Of Chris Davis
Sent: 13 March 2018 12:33
To: ***@leafe.com
Subject: VFP Service

Hi All

In the past I have followed this article

https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-appli
cation-as-a-service/

Does anyone have any advice about how to approach this on Server 2016 as I
believe SRVANY is no longer an option.

Regards

Chris


--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/000101d3bd2f$a827a780$f876f680$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Continue reading on narkive:
Loading...