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.

Comments

Popular posts from this blog

Detecting Transaction Isolation Level through Profiler Trace and other means on MS SQL Server 2005

Regular Expressions in SQL Server, DB2 UDB, and Oracle