/build/static/layout/Breadcrumb_cap_w.png

Start in directory for shortcuts in Windows 7

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

Answers (1)

Posted by: martin99 12 years ago
Senior Yellow Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ