Current Folder Setting in Windows7
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Walter Roberson
am 19 Jan. 2012
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 Kommentare
David Koenig
am 19 Jan. 2012
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
am 19 Jan. 2012
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.
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!