Some programs use the systemfolder (C:\Windows\System32) as default location for their files / documents when those programs are started from the startmenu directly. The "Start in" property is left empty.

The strange thing is that it works correctly when the directory that contains the shortcut in the startmenu is opened in a explorer windows first and the shortcut is activated from here. The default location is set to the Documents library in this case which is correct.

This strange behavoir is only the case for some programs under Windows 7. It all works correctly when using Windows XP.

The question is why is te systemfolder used in case de shortcut is directly activated and the correct documents folder is used when using the explorer window in between?

Thanks for the responses in advance.
Martin
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You can download a zip file from here:
http://www.filedropper.com/shortcuttest_2
containing a ism and msi with cmd.exe and a advertised shortcut to it.

Directly clicking on the shortcut in the startmenu gives "c:\windows\system32" as working directory.

Opening the startmenu in a explorer window and clicking the shortcut gives "%allusersprofile%\microsoft\windows\start menu\programs\shortcuttest" as working directory.

There is no working directory specified for the shortcut but where does this difference come from?

Windows XP shows a same sort of behavior but directly clicking the shortcut in the startmenu gives the
%HOMEDRIVE% as working directory instead of the unwritable systemfolder.

Martin.
Answered 10/14/2011 by: martin99
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity