Mark Michaelis' Weblog :
Updated: 9/1/2004; 7:06:26 AM.

 








Subscribe to "Mark Michaelis' Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Subscribe To
Mark's Weblog

 
 

Wednesday, December 24, 2003

Command Line Utilities in WindowsXP and Windows 2003
Google Search It
  • EventTriggers
    Allows you to create commands that are triggered by particular entries into the event log.  Cool! 
  • Setx (Windows 2003 only as far as I can tell)
    Nice in theory but doesn't seem to be available
  • Forfiles
    Iterates through a set of files
  • fsutil hardlink
    Great for creating a hardlink (a secondary name for a file in any location) but doesn't appear to have an equivalent delete and doesn't work on directories like the junction.exe does from sysinternals.
  • IIS* (Iisapp, Iisback, Iiscnfg, Iisext, Iisftp, Iisftpdr, Iisreset, Iisvdir, Iisweb)
    Manages ftp and web sites and directories
  • Irftp
    Send files over an IR link
  • Netsh
    :Lots of network configuration stuff
  • Openfiles (More functional on Windows 2003)
    View/disconnect open files.  For locally open files a reboot is required.
  • Reg
    Command line registry manipulation
  • Reset session
    Deletion/reset terminal services session (important for Windows 2000 when you easily run out of sessions because the same user can get multiple sessions.
  • sc
    Allows control of services similar to the Services MMC snapin
  • SystemInfo
    Dumps data about the computer such as memory, name, etc.
  • TaskKill/TaskList
    Controls processes
  • Timeout (Windows 2003 only)/Sleep
    Pauses the command processor
  • Takeown
    Gives an administrator ownership of a file
  • Waitfor
    Allows signal betweens computers... looks like a great means for automating Virtual PC sessions and allowing communication between those sessions.
  • replace /a
    Copies files that are not already in the destination directory.  Unfortunately replace /s /a is not allowed.

4:56:49 AM   []    comment []

Setx Command Line
Google Search It

Recently I have an install program that required setting a system environment variable.  The problem was that to do this required setting a registry value and then rebooting.  Yuck!  I then found a command line utility called setenv (named after the UNIX command I believe) that did all this for me (I nearly wrote one too.)  This morning I happened to notice in the help that there is a native windows command line utility called Setx that does the same thing.  Well what do you know!  Unfortunaely this is only available in Windows 2003 from what I can tell although I read it was also in thw WindowsXP reskit.


3:48:50 AM   []    comment []

© Copyright 2004 Mark Michaelis.



 


December 2003
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Nov   Jan


Recent Posts