View tasks.cs
Microsoft.Phone.Tasks.SaveContactTask tsk = new Microsoft.Phone.Tasks.SaveContactTask();
tsk.FirstName = "SuomiWP";
tsk.Website = "suomiwp.com";
tsk.Completed += new EventHandler<Microsoft.Phone.Tasks.SaveContactResult>(tsk_Completed);
tsk.Show();
void tsk_Completed(object sender, Microsoft.Phone.Tasks.SaveContactResult e)
{
// täällä sitten tehdään jotain sen mukaan mitä tehtävä palauttaa.
}
View foo.bat
SET arch=%processor_architecture%
SET "pf=C:\Program Files"
if "%arch%" == "AMD64" (
SET "pf=C:\Program Files (x86)"
)
REM below does not fail even though "pf" has spaces in it
copy "\\some\path\file.foo" "%pf%\bar\baz\file.foo"