jaybaz [MS] WebLogWe believe in nothing.PowerShell polyglot- April 26, 2007 Here's an example of a CMD script that is implemented in PowerShell. :: This prolog allows a PowerShell script to be embedded in a .CMD file. :: Any non-PowerShell content must be preceeded by "" setlocal set POWERSHELL_BAT_ARGS=% if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"="% PowerShell -Command Invoke-Expression $('$args=(&$args %POWERSHELL_BAT_ARGS%);'+String::Join(';',$((Get-Content '%f0') -notmatch ''))) & goto :EOF If you don't need to support...http://blogs.msdn.com/jaybaz_ms/archive/2007/04/26/powershell-polyglot.aspx Is Virtual Memory dead- April 19, 2007 To figure out whether virtual memory makes sense, you have to look at the following factors: RAM size Disk size RAM speed Disk speed It's the relationship between these values that matter. (All of these are considered in the context of a fifth factor: price. For example, you can usually find a way to buy more RAM, but it may mean replacing the motherboard, switching to a 64-bit OS, etc.) In the last decade or two, we've seen RAM and disk sizes grow steadily. RAM speed has...http://blogs.msdn.com/jaybaz_ms/archive/2007/04/19/is-virtual-memory-dead.aspx |