Convert the program to C# to service
I tried to turn it to the service, but obviously something we do is wrong and it failed, the service is launched, but it doesn’t work as it needs. It needs to be corrected.
Applications 1
-
1479 72 0 Hello to Victor.
I know why your service doesn’t work.
Ready to make a service putting tasks in the default order of the print on a break
(or if you need something else)
You can talk to LS.
-
283 9 0 I wrote in my comments what to do. The program (both) is already available. We need to clarify the details.
-
6087 284 0 Good day . I know how to solve your problem. I can provide a project for VS.
-
1314 44 5 1 Good day . In general, it is ready to fall. I understand that this program has to look at the line of the press and do something with it...
-
Доброе утро. А можете описать вкратсце что делает программа?
-
Добрый день
Попробуйте просто убрать вот эти строки:
string[] dirs = Directory.GetFiles(@"C:\Windows\System32\spool\PRINTERS");
if (dirs.Length > 0)
Скорее всего, ошибка из-за них, т.к. винда ни одной пользовательской службе не даст лазить по системным директориям в таком виде.
Этот код просто проверяет наличие очереди - так это можно сделать иначе:
server.GetPrintQueues()
-
Это задача немного сложнее.
Надо две программы:
1 Console или WinForms программа которая запустит инсталлятор, сделает все настройки и запустит (остановит, удалит)) службу
2 Сама служба с инсталятором.
Делал уже такую, могу переделать под вашу задачу.
-
А можно сделать программу, которая будет прятаться в трей в значок и не быть службой? Её не будет видно на экране и в строке задач.
Подходит такое?
-
Current freelance projects in the category C#
Creation of a plugin for integration with the POS system Syrve, C#Develop a plugin for the Syrve POS system (on-premise), which is installed on the establishment's server. The plugin must: (1) transmit data to our server in real-time — orders, table statuses, payments, receipts; (2) receive commands from Reservble — booking confirmations,… C#, Web Programming ∙ 1 day 23 hours back ∙ 11 proposals |
Creation or refinement of firmware and logic for three autonomous LoRa stations based on ESP32.
112 USD
Creation or refinement of firmware and logic for three autonomous LoRa stations based on ESP32. The devices must set up a Wi-Fi access point, serve a local site via a browser (HTTP), receive text and images within a radius of 5-10 km (plus or minus), store data (preferably on… C & C++, C# ∙ 2 days 6 hours back ∙ 3 proposals |
S1GG1LA person is needed who can take the initial code of the Minecraft launcher for the project, change the design at their discretion, but there are small style requirements for it to be in purple tones. Regarding payment, please suggest a price for the work. However, the budget is… C#, Gaming Apps ∙ 4 days 15 hours back ∙ 7 proposals |
Improvement in the existing version of 1C retail block for the distribution center (DC)In general, I will explain what kind of database we have - There is a main server where there is a retail database (where all receipts are recorded) - a UTP database - where all sales are transferred - it calculates the markup and stock balances - small databases of retail… C & C++, C# ∙ 9 days 16 hours back ∙ 6 proposals |
It is necessary to migrate the current working program from FoxPro to C#.Hello everyone! We have a program in FoxPro (it has several modules, it's an accounting program), we have the source code of the program, and if necessary, we can consult with people who support the current program. What needs to be done: 1. Analyze how everything works,… C#, Desktop Apps ∙ 12 days 6 hours back ∙ 19 proposals |