T-news

Thursday, April 26, 2007

google等 軟體倉

Labels:

未來桌面

Friday, March 23, 2007

電腦教室管理工具系列(一) - 關閉學生應用程式


轉載自huihui的飛機場




電腦教室管理工具系列(一) - 關閉學生應用程式




寫這個程式的目的是要在遠端(老師的電腦)關閉學生電腦上正在運行的某個應用程式。

 

為什麼需要這個程式呢?因為現在學生坐在電腦前的反射動作就是打開 IE→連上Yahoo→找Flash遊戲/討論區/Blog/聊天室......接下來誰還聽你上課。至於為什麼是
IE?為什麼是 Yahoo?這個問題我想可能要請教國中和國小的電腦課授課者(不一定是電腦教師)或家長了。


我可以在 Proxy 上設定學生上課中不能上網,但是他們也很精,利用下課時間先開好 Flash
Game,然後在上課中偷玩衰死了~~


 


其實用 WMI 加上 Script
就可以達成任務,不過考慮之後我還是傾向寫成應用程式,這個程式的介面很簡單



使用方式如下:



  1. 首先要在 computers.txt 文字檔中列出所有的目標電腦名稱;

  2. 接下來指定要關閉的應用程式名稱,目前大概只會對 IE 下手吧;

  3. 緩衝時間是按下 [啟動]
    後要等幾秒才開始動作,為什麼需要這個?因為有時你不想讓學生知道你在做這件事酷喔

  4. 勾選啟動後隱藏,則程式只會在 System Tray 上以小 Icon 顯示;

  5. 勾選完成後通知,則所有工作做完後, System Tray
    上會有一個泡泡告訴你工作完成。



由於要處理的電腦數量不少,而且每個連線都需要花一點時間,所以我使用多執行緒的方式來處理,效率還不錯!


目前它只能在 AD
上使用,且使用者必需具備網域管理員權限,由於在電腦教室中的我們正是這個身份所以對我來說是 OK
的,如果以後有需要給非 AD 環境使用話,把它改成需要輸入單機管理員的帳號密碼後應該也會適用。






winxp的 goodtools

taskkill.exe
tasklist.exe

[Tools] NirCmd: 免費控制Windows的命令列指令

轉載: 簡睿隨筆

NirCmd: 免費控制Windows的命令列指令



  • 702



  • 實用軟體試用報告
    平均分數:0
    顆星 投票人數:0

    我要評分:







  •  


    NirCmd
    是一套免費的命令列指令,提供許多控制Windows的參數。這些參數太多了,一時還無法歸納如何是最好的運用方法與使用時機,感覺與預設的NET.EXE
    有部份功能重疊。



    以下是來自其網站的使用範例。



     


    Examples of what you can do with NirCmd


     



































































































































































































































































    Open the door of J: CD-ROM drive nircmd.exe cdrom open j:
    Close the door of Y: CD-ROM drive nircmd.exe cdrom close y:
    Increase the system volume by 2000 units (out of
    65535)
    nircmd.exe changesysvolume 2000
    Decrease the system volume by 5000 units (out of
    65535)
    nircmd.exe changesysvolume -5000
    Set the volume to the highest value nircmd.exe setsysvolume 65535
    Mute the system volume nircmd.exe mutesysvolume 1
    Unmute the system volume nircmd.exe mutesysvolume 0
    Switch the system volume between the mute and normal
    state.
    nircmd.exe mutesysvolume 2
    Create a shortcut on your desktop that switch the
    system volume between the mute and normal state.
    nircmd.exe cmdshortcut
    "~$folder.desktop$" "Switch Volume" mutesysvolume 2
    Turn off the monitor nircmd.exe monitor off
    Start the default screen saver nircmd.exe screensaver
    Put your computer in 'standby' mode nircmd.exe standby
    log off the current user nircmd.exe exitwin logoff
    Ask if you want to reboot, and if you answer 'Yes',
    reboot the computer.
    nircmd.exe qboxcom "Do you want
    to reboot ?" "question" exitwin reboot
    Turn off your computer nircmd.exe exitwin poweroff
    Turn off all computers specified in computers.txt !
    multiremote copy
    "c:tempcomputers.txt" exitwin poweroff force
    Dial to "My Internet" connection nircmd.exe rasdial "My Internet"
    Disconnect the "My Internet" connection nircmd.exe rashangup "My
    Internet"
    Make your Internet Explorer windows 75% transparent
    ! (192 / 256)
    nircmd.exe win trans ititle
    "internet explorer" 192
    Minimize all your Internet Explorer windows nircmd.exe win min class
    "IEFrame"
    Close all your Internet Explorer windows nircmd.exe win close class
    "IEFrame"
    Close all your Explorer windows (My Computer,
    folders, and so on)
    nircmd.exe win close class
    "CabinetWClass"
    Hide all your Internet Explorer windows nircmd.exe win hide class
    "IEFrame"
    Show all your Internet Explorer windows (after you
    made them hidden with previous example)
    nircmd.exe win show class
    "IEFrame"
    Center all top-level windows nircmd.exe win center alltop
    Remove the title bar of My Computer window. nircmd.exe win -style title "my
    computer" 0x00C00000
    Return the title bar of My Computer window that we
    removed in the previous example.
    nircmd.exe win +style title "my
    computer" 0x00C00000
    Set the My Computer window to right-to-left order
    (For hebrew and arabic languages)
    nircmd win +exstyle title "my
    computer" 0x00400000
    Set all child windows of My Computer window to
    right-to-left order (For hebrew and arabic languages)
    nircmd win child title "my
    computer" +exstyle all 0x00400000
    Create a shortcut on your desktop that closes all
    your Internet Explorer windows
    nircmd.exe cmdshortcut "
    "~$folder.desktop$ "Close All IE" win close class
    "IEFrame"
    Create a shortcut on your desktop that hides all
    your Internet Explorer windows
    nircmd.exe cmdshortcut "
    "~$folder.desktop$ "Hide All IE" win hide class
    "IEFrame"
    Create a shortcut on your desktop that shows back
    all your Internet Explorer windows
    nircmd.exe cmdshortcut "
    "~$folder.desktop$ "Show All IE" win show class
    "IEFrame"
    Set the Windows Calculator as top-most window (above
    all other windows)
    nircmd.exe win settopmost title
    "Calculator" 1
    Set the Windows Calculator back to regular window
    (non top-most window)
    nircmd.exe win settopmost title
    "Calculator" 0
    Create a shortcut to Windows calculator under Start
    Menu->Programs->Calculators
    nircmd.exe shortcut
    "f:winntsystem32calc.exe"
    "~$folder.programs$Calculators" "Windows Calculator"
    Hide the desktop window nircmd.exe win hide class
    progman
    Show the desktop window (After hiding it in previous
    example)
    nircmd.exe win show class
    progman
    Hide the start button on the system tray nircmd.exe win child class
    "Shell_TrayWnd" hide class "button"
    Show the start button on the system tray nircmd.exe win child class
    "Shell_TrayWnd" show class "button"
    Hide the clock on the system tray nircmd.exe win child class
    "Shell_TrayWnd" hide class "TrayClockWClass"
    Show the clock on the system tray nircmd.exe win child class
    "Shell_TrayWnd" show class "TrayClockWClass"
    Kill (terminate) all instance of Internet Explorer
    processes
    nircmd.exe killprocess
    iexplore.exe
    Create a shortcut on your desktop that opens the
    door of K: CDROM drive when you run it.
    nircmd.exe cmdshortcut
    "~$folder.desktop$" "Open CDROM" cdrom open k:
    Create a shortcut to NirSoft Web site on your
    desktop
    nircmd.exe urlshortcut
    "http://www.nirsoft.net" "~$folder.desktop$" "NirSoft"
    Add NirSoft Web site to your Favorities under Links
    folder.
    nircmd.exe urlshortcut
    "http://www.nirsoft.net" "~$folder.favorites$Links"
    "NirSoft"
    Create a shortcut to NirSoft Web site on the desktop
    of all computers listed in computers.txt
    nircmd.exe multiremote copy
    "c:tempcomputers.txt" urlshortcut
    "http://www.nirsoft.net" "~$folder.common_desktop$"
    "NirSoft"
    Set the display mode to 800x600x24bit colors nircmd.exe setdisplay 800 600 24
    Create a shortcut on the desktop that set the
    display mode to 800x600x24bit colors
    nircmd.exe cmdshortcut
    "~$folder.desktop$" "800x600x24" setdisplay 800 600
    24
    Copy all shortcuts on your desktop to another folder
    (f:tempdesktop).
    nircmd.exe execmd copy
    "~$folder.desktop$*.lnk" f:tempdesktop
    Restart your Apache server (under Windows
    NT/2000/XP/2003)
    nircmd.exe service restart
    apache
    Create a shortcut on your desktop that restarts the
    Apache server
    nircmd.exe cmdshortcut
    "~$folder.desktop$" &quotRestart Apache" service restart
    apache
    Restart your IIS nircmd.exe service restart w3svc
    Restart MySql nircmd.exe service restart MySql
    Open the desired Registry key/value in RegEdit nircmd.exe regedit
    "HKLMSoftwareMicrosoftWindowsCurrentVersion"
    "CommonFilesDir"
    Open the Registry key that you copied to the
    clipboard in RegEdit.
    nircmd regedit "~$clipboard$"
    Disable the screen saver nircmd.exe regsetval sz "HKCUcontrol
    paneldesktop" "ScreenSaveActive" 0
    Disable the screen saver nircmd.exe regsetval sz "HKCUcontrol
    paneldesktop" "ScreenSaveActive" 0
    Change the date/time of the specified filename
    (creation time and modified time)
    nircmd.exe setfiletime "c:tempmyfile.txt"
    "24-06-2003 17:57:11" "22-11-2005 10:21:56"
    Copy your desktop folder path to the clipboard nircmd.exe clipboard set ~$folder.desktop$
    Copy your start menu folder path to the clipboard
    nircmd.exe clipboard set ~$folder.start_menu$
    Copy the content of info1.txt (simple text file) to
    the clipboard
    nircmd.exe clipboard file "c:My
    Filesinfo1.txt"
    Clear the clipboard nircmd.exe clipboard clear
    Create all folders specified in "c:tempfolders.txt".
    The folder path names are separated by CRLF characters.
    nircmd.exe paramsfile
    "c:tempfolders.txt" "" "" execmd md ~$fparam.1$
    Install the specified .NET assembly in the global
    assembly cache (like gacutil)
    nircmd.exe gac install
    "C:tempMyAssemblybinMyAssembly.dll"

     


     




     

    Thursday, March 22, 2007

    將近20種超強實用軟體(green)

    Firefox Portable Locale-Switcher
    Thunderbird Portable
    FileZilla Portable
    µTorrent
    Portable Openoffice
    Subpad
    CoolPlayer
    Hamana
    Hamana ver1.48 extra language patch
    SilentNight Micro Burner Remora行動碟終極保鑣
    CPU-Z
    MemTest
    MvPCinfo
    DiskCheckup
    ReSysInfo
    Allway Sync