Results 1 to 4 of 4

Thread: Regarding Windows Script

  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Regarding Windows Script

    Hi,

    I need a Windows Script to give process Turnaround time.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Regarding Windows Script

    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.

  4. #4
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •