Tips on Windows

Readings : References, Tutorials, Articles

Mozilla applications

Creating or modifying windows service

To create, delete, start or stop a window service, you can use sc command (sc.exe).
The following articles describe the command in detail.

A typical example to register new service is like this.

c:\> sc create svn
        binpath= "C:\svn\bin\svnserve.exe --service -r C:\repos"
        displayname= "Subversion Server"
        depend= Tcpip
        start= auto

Note that the equal sign(=) between option name and option value should follow right after option name without any space and should have at least one space before option value. So, if you write depend=Tcpip with the above example, it wouldn't work.

Delete cached password for network drive

At DOS console, run the program like the following.

C:\>control userpasswords2

Find the PID of the process occupying specified TCP/UDP port

At DOS console, run the netstat and filter the result using findstr command.
The example is :

C:\>netstat -nao | findstr 1098

Useful Command-line Tools

On a windows, you can use pathping command to view the route to the specified IP address.

c:\>patfhping www.google.com
For more about pathping, refer the followings.
Windows equivalent for ps. For example, you can find the program or process using PID of 1544, using tasklist like the following. For complete description of tasklist, refer http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_o.mspx?mfr=true


Post a Comment