Re: Simple question sabout setting directory
- To: mathgroup at smc.vnet.net
- Subject: [mg51476] Re: Simple question sabout setting directory
- From: p-valko at tamu.edu (Peter Valko)
- Date: Tue, 19 Oct 2004 02:55:50 -0400 (EDT)
- References: <ckv867$i6g$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Regarding your first question: thisDir=ToFileName[ ("FileName"/.NotebookInformation[EvaluationNotebook[]])[[1]]]; SetDirectory[thisDir]; Regards Peter Daohua Song <ds2081 at columbia.edu> wrote in message news:<ckv867$i6g$1 at smc.vnet.net>... > Dear Group, > (1)Everytime i load a math.nb file, i want it to set the directory to > be the same one where the file is. > e.g. Once you load c:\math.nb, the defalut directory will be set to > c:. (so i can manage the .nb file and other data file in the same > direcotry ) > (2)If i open several math programms in the same time, how to change > from one to another? just like what "Alt+tab" does in windows operation > system. > I remember someone had asked before.. Sorry.. > Sincerely > Daohua