This article is a mirror article of machine translation, please click here to jump to the original article.

View: 47428|Reply: 8

[.NET Core] ASP.NET Core (ServiceAdmin) enables online management of Windows services

[Copy link]
Posted on 12/18/2020 10:11:32 AM | | | |
Because the project needs to develop Windows services, when replacing Windows service program files, it needs to be stopped first, otherwiseThe file will be occupied and cannot be replaced

Windows installs the .net/c# service program
https://www.itsvse.com/thread-4674-1-1.html

Replacement program files are replaced by FTP or shared network disks, and do not require logging in to the server.

It is troublesome to log in to the server every time you stop or start Windows services (The server is a bastion machineSo, using ASP.NET Core to develop a ServiceAdmin project, you can implementStarts, stops, and restarts Windows services via the web

Using ASP.NET Core publishing specifies the target platform, so, the serverNo installation is required.NET SDK。

First, take a look at the screenshot:



Program core code:

Attach a bat script, start the project with scripts, scriptsMust be run as an administratorBecause, some services require administrator privileges, and the script is as follows:
BAT scripts use the administrator run to switch to the current directory
https://www.itsvse.com/thread-9503-1-1.html


Source code download:

Tourists, if you want to see the hidden content of this post, pleaseReply






Previous:BAT scripts use the administrator run to switch to the current directory
Next:ASP.NET MVC online decompilation of the current website source code
Posted on 12/24/2020 6:00:45 PM |
Come and take a look, thanks for sharing
Posted on 12/25/2020 10:10:07 AM |
Learn it
Posted on 12/25/2020 12:20:46 PM |
/// <summary>
        Internal serial numbers, separated by commas
        /// </summary>
        public string ReferBillNo { get; set; }

        /// <summary>
        User ID
        /// </summary>
        public long ? UserId { get; set; }

        /// <summary>
        item code
        /// </summary>
        public long? ProjectCode { get; set; }

        /// <summary>
        Order number
        /// </summary>
        public long? COID { get; set; }

        /// <summary>
        Start date
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        End date
        /// </summary>
        public DateTime? EndTime { get; set; }
Posted on 1/28/2021 8:48:55 AM |
Can you share the source code?
Posted on 2/4/2021 2:33:43 PM |
Posted on 7/30/2021 9:55:57 PM |
Posted on 8/4/2021 8:47:00 AM |
Nice good stuff, take a look
Posted on 9/6/2021 12:58:46 PM |
Learn to see
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com