MOSS 2007 Preimenovanje Web Application Name

I want to share how to rename the web application name in command line administration of MOSS 2007 using STSADM Command.

Skladnja: stsadm -o renameweb -url -newname

Primer: Stsadm -o renameweb -url http://localhost/oldname -newname newname

The above command will rename the web application from oldname to the newname.