Friday 8 April 2016

Kill a process in windows

There are occasions when normal means of stopping or undeleting a service cannot be done because of the "..cannot accept control messages at this time". I have previously showed away how to forcefully stop and delete such a service with the sc.exe program. But now even that didn´t work and the program was not shown as a running process.

I did however find the .exe program using the following command:

tasklist

It lists all running processes and services together with their process id (PID). By using the following command I could make sure the process is killed in its entirety:

taskkill /pid <processid> /f

The process will be killed and you could continue what you where doing.

Friday 15 January 2016

Setup a local FTP Server on Windows 8

In one of my projects - for testing purposes - I needed to setup a local FTP server in my development environment to run locally so I could test FTP commands to send files somewhere. The best video I found how to do this was this one:


To try to send files to this FTP Server using built-in ftp commands of Windows 8.1 I did this:

1. Open a command windows in administrator mode
2. Type

open <ipadress> /* connects to ftp-server */
<enter credentials>

dir <lists files> /* lists all files on ftp-server */

send <filename> /* To upload file to ftp-server */