Console

Add the application as a service at Windows Server

You can add the service with PowerShell. New-Service and Get-service are available in PowerShell 5, for ‘Remove-Service’ PowerShell >= 6 required. Otherwise you can use ‘sc.exe DELETE MyMegaServiceApplication’. You should execute it with as an administrator. Not any application you can start a service. As a .Net developer, I usually create .Net solutions, in this […] Read more»

Windows

Dapper with PostgreSQL and MSSQL Server

Create a console app with .Net Framework 4.7.2 with Dapper and datasource in MSSQL Server or PostgreSQL. If you create this ancient app, you should only add Dapper and NPGSQL packages from Nuget. The support of MS SQL Server is already built in. The scenario for .Net Framework is from real life, several applications still […] Read more»

.Net & C#

Select and move files by mask with Windows command line

Figure 2. The result of command Get-SPLogEvent

During previous 5 years I have downloaded files from FTP server. Those were texts and images, that had been downloaded from FTP resources. During these 5 years its quantity became enormous – over 150 000 items in each folder. It worked automatically, that’s why I hadn’t paid attention to disc size and quantity of files. […] Read more»

Windows

Popular Posts