IShellLink::SetWorkingDirectory

Syntax:

SetWorkingDirectory (LPCSTR pszDir);

Parameter:

Description:

Sets the current working directory for the shortcut object to the path pointed to by the pszDir parameter. The working directory of the object needs to be set only if the shortcut object requires it. For example, if your application created a shortcut to a Microsoft Word document that used a template or another object that resided in a special directory, your application could use this member function to set the working directory.