Log in

View Full Version : Regarding Windows Script



mspruthv
11-13-2008, 11:08 AM
Hi,

I need a Windows Script to give process Turnaround time.

djr33
11-13-2008, 07:21 PM
So you want a window to appear which has the time or a countdown for a process?
1. How are you making this? Javascript? Flash? Is there server side code involved, will you need ajax?
2. What is the process, and how do you know how long it will take?
3. Do you have any code yet? Post it if you do.

mspruthv
11-18-2008, 04:37 AM
I need to retrieve all the windows process turnaround time.

Ex: if we work on MS Word for 20 min. then it should be capable of calculating the time we spent on MS Word.

I hope you understood the problem.

I have the script which gives the windows process owner:
Here we need to pass the process name, then this will reterive the Owner of the process.

Set WshShell = WScript.CreateObject(\"WScript.Shell\")
Set locator = CreateObject(\"WbemScripting.SWbemLocator\")
Set service = locator.ConnectServer()
Set processes = service.ExecQuery _
(\"select * from Win32_Process where name=process_name ")
For Each objProcess in processes
Return = objProcess.GetOwner(strNameOfUser)
Wscript.Echo strNameOfUser
Next
Set WshShell = Nothing.

mspruthv
11-19-2008, 12:21 PM
I need to retrieve all the windows process turnaround time.

Ex: if we work on MS Word for 20 min. then it should be capable of calculating the time we spent on MS Word.

I hope you understood the problem.

I have the script which gives the windows process owner:
Here we need to pass the process name, then this will reterive the Owner of the process.

Set WshShell = WScript.CreateObject(\"WScript.Shell\")
Set locator = CreateObject(\"WbemScripting.SWbemLocator\")
Set service = locator.ConnectServer()
Set processes = service.ExecQuery _
(\"select * from Win32_Process where name=process_name ")
For Each objProcess in processes
Return = objProcess.GetOwner(strNameOfUser)
Wscript.Echo strNameOfUser
Next
Set WshShell = Nothing.