Search This Blog

Sunday, May 31, 2009

Command line args from Process ID (pid)

Sometime you need more from your task manager , not only the PID , you want to see the full command line , and you don't want to install the process explorer on a production server, so the next script will show you how to get the command line arguments by a process id.
open new text document , rename it to PidToCmd.vbs.
Edit the file.
Copy the next lines into it.



If WScript.Arguments.Count > 0 Then
Set Processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2").ExecQuery("select * from Win32_Process where ProcessID =" & WScript.Arguments.Item(0))
For each Process in Processes
PList = PList & Process.CommandLine & vbLf & vbLf & vbLf
Next
WScript.Echo "command line: " & VBlf & VBlf & UCase(PList)
Else
WScript.Echo "Usage: PidToCmd.vbs [process id]"
End If


Save the file .
run it .

enjoy
Yaniv T

Wednesday, May 27, 2009

web site stress tools

In the next link you can find a complete list (i think ... ) for stress test tools for web application.
Web Site Test Tools and Site Management Tools .

Another good link its for tomcat admin - Tomcat Performance Tuning.

yaniv

Tuesday, May 26, 2009

Update Progress extension & Ajax load gifs

if you are looking for an Ajax icon/gif , in the next site you can design your own ajax gif.
Ajax load

if you are looking for an extended to the update progress control , you can find lovelly extension just here

Using the UpdateProgress control as a modal overlay

Yaniv

Monday, May 11, 2009

Calling JavaScript from ASP.NET

I found a very good article that describe several ways to call to java script from asp.net server side , with master page and with Ajax.

Calling JavaScript from ASP.NET

enjoy
Yaniv

Tuesday, May 5, 2009

Web forms - Tips via ASP.NET

Very good article and code sample you can find here :

FAQ in Web Forms

enjoy Yaniv