Category : service

here is my printing code : //Print & Move the files after printing DirectoryInfo sourceinfo = new DirectoryInfo(@"C:fold"); DirectoryInfo target = new DirectoryInfo(@"C:fold1"); if (!Directory.Exists(target.FullName)) { Directory.CreateDirectory(target.FullName); } foreach (FileInfo fi in sourceinfo.GetFiles()) { if (fi.Length != 0) Pdf.PrintPDFs(fi.FullName); fi.CopyTo(Path.Combine(target.ToString(), fi.Name), true); fi.Delete(); } and here is my pdf class (it uses adobe acrobat reader) ..

Read more

I got an assignment from my school, I need to make a script for a management service, and it says 5 requirements: 1:Query regarding service management 2:Query service selection 3:Query regarding correctness of selection or new selection 4:Calibrates service and specifies possible parameters (start, stop,) 5:parameter can be selected, which is then applied to the ..

Read more

I would like to trigger a windows service by plugging in a specific UBS stick. I found out, that I can use the sc.exe tool to add a trigger event on my service. The syntax in cmd should be like following: sc triggerinfo *MyService* start/*myEvent* My problem is, that I do not know, what the ..

Read more

we are having MSMQ & windows services. Windows services listening data from MSMQ. Refer Below code. MessageQueue myQueue; myQueue = new MessageQueue(QueueName, QueueAccessMode.Receive); myQueue.ReceiveCompleted += new ReceiveCompletedEventHandler(MyReceiveCompleted); myQueue.BeginReceive(); it is running good in standalone machine. Currently we are trying to implement High Availability for Windows services and MSMQ. using Windows Cluster 2019 – ACTIVE PASSIVE. ..

Read more