As a simple example of working with culture information in PowerShell, here's how to list Swedish monthnames:
The result is an array:
Try doing that in a BAT file...
/Emil
Mostly for my own reference, here's an example of how to configure a trace listener that writes events to a text file:
After that, all calls to System.Diagnostics.Trace.Write* functions are logged to the textfile. Example:
Here's a small script to kill all Word or Excel-processes that have been running for more than 5 minutes. This can be useful on a server that launches those applications to generate documents. You probable shouldn't do it that way but if you do you're likely to discover that the processes don't always terminate as they should. In those situations, scripts like this come in handy.
/Emil
[powered by WordPress.]
jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.
36 queries. 0.636 seconds