JumpTask.WorkingDirectory Property

.NET Framework (current version)
 

Gets or sets the working directory of the application on startup.

Namespace:   System.Windows.Shell
Assembly:  PresentationFramework (in PresentationFramework.dll)

public string WorkingDirectory { get; set; }

Property Value

Type: System.String

The working directory of the application on startup. The default is null.

The following example shows how to declare a JumpTask in markup. The JumpTask opens a text file named readme.txt in the Notepad application.

<JumpTask Title="Read Me" 
          Description="Open readme.txt in Notepad." 
          ApplicationPath="C:\Windows\notepad.exe"
          IconResourcePath="C:\Windows\System32\imageres.dll"
          IconResourceIndex="14"
          WorkingDirectory="C:\Users\Public\Documents"
          Arguments="readme.txt"/>

.NET Framework
Available since 4.0
Return to top
Show: