Friday, October 28, 2005

Good Scripting info

In particular, some things I didn't know about the Start command.
Example, when commands need quoted because of spaces or odd characters, you need to include the title parameter in the command.

From cmd.exe, these two work:
Start mailto:"somebody?subject=some%20words%20separated%20by%20spaces&body=Some%20text%20in%20the%20body%20of%20the%20mail&cc=copyPerson&bcc=blindCopyPerson"

start "Mail" "mailto: at this website&body=Hi, I found this website and thought you might like it"

This one doesn't:
Start mailto:"somebody?subject=some words separated by spaces&body=Some text in the body of the mail&cc=copyPerson&bcc=blindCopyPerson"

I'd like to know the majik behind specifying the window title in example two (that works) that suddenly allows spaces to be parsed correctly.

No comments:

MS SQL Server Max Memory Size for given Server Physical Memory

Glenn Berry , over at SQL Server Central , has written an excellent and straight-forward guide to initial settings for max memory in SQL Ser...