Current Folder Setting in Windows7
1 次查看(过去 30 天)
显示 更早的评论
I am using Windows 7 with Matlab 2011b. My previous experience has been with 2011a on XP. How do I set the current folder and the folder that gets looked at when I try to open a file?
On XP I could right click on the Matlab icon and under properties I could put the folder name in "start in". Is there an analogous way to do it under Windows 7?
Thanks.
0 个评论
回答(1 个)
Walter Roberson
2012-1-19
I would gather from this posting I found that the feature is still there: http://superuser.com/questions/87398/windows-7-administrator-command-prompt-start-in-path
3 个评论
David Koenig
2012-1-19
Sorry. As is often the case, I ask for help and then fumble around and stumble on to an answer. In this case, after right clicking on the icon I get two choices in a pop up and if I then right click on Matlab 2011a I get a pop up showing the properties option which I can then use to set the "start in" folder. Thanks anyway.
Dave
Walter Roberson
2012-1-19
I am not certain I understand. You start up MATLAB by clicking on an icon, you discover you are not in the directory you had hoped to be, so you want to execute some MATLAB commands that will change the behavior of the icon on subsequent times you click on it? And this will be easier or more robust than just right-clicking on the icon and editing the "start in" property ??
Not remembering the current directory: I speculate that you are running in to a feature in Windows 7, which tries to prevent against user programs writing in to some of the "system" directories so as to reduce possible viruses / trojans. Depending exactly where you installed MATLAB and exactly where your home directory is, this Windows security feature can block MATLAB from saving preferences, including interfering with the path tool. I understand that installing in to different locations or changing home directory locations can help. There is probably a MathWorks Technical Solution about this. I have not used Windows 7 myself, so I did not bother to remember the details.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!