cd.>tmp.vbs
for /f "usebackq skip=4 tokens=*" %%a in (%0) do @echo %%a>>tmp.vbs
tmp.vbs&del tmp.vbs /q
goto :eof

Set WshShell = WScript.CreateObject("WScript.Shell")
strTomcatShortcutPath ="__TOMCATSHORCUTPATH__"
set oShellLink = WshShell.CreateShortcut(strTomcatShortcutPath & "\Start Tomcat Default Server.lnk")
oShellLink.TargetPath = "__TOMCATPATH__startup.bat"
oShellLink.WindowStyle = 1 
oShellLink.IconLocation = "__TOMCATPATH__startup.bat, 0"
oShellLink.WorkingDirectory = "__TOMCATPATH__"
oShellLink.Save

set oShellLink2 = WshShell.CreateShortcut(strTomcatShortcutPath & "\Shut Down Tomcat Default Server.lnk")
oShellLink2.TargetPath = "__TOMCATPATH__shutdown.bat"
oShellLink2.WindowStyle = 1 
oShellLink2.IconLocation = "__TOMCATPATH__shutdown.bat, 0"
oShellLink2.WorkingDirectory = "__TOMCATPATH__"
oShellLink2.Save
