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: Joe.Hayes@Fiserv.com?subject=look at this website&body=Hi, I found this website and thought you might like it http://www.geocities.com/wowhtml/"

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:

The Soft and Melting Duck Egg Meditation (For Qi Gong Psychosis)

The Soft and Melting Duck Egg Meditation: (Moving the yang qi from the head) When Master Hakuin was just starting out upon his Zen c...