Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!bruce!monu1!vaxc!cie590l From: hadgraft@civeng.monash.edu.au (Roger Hadgraft) Newsgroups: comp.windows.ms Subject: How to Change directory before running an application ? Message-ID: <46093.26f21662@vaxc.cc.monash.edu.au> Date: 15 Sep 90 01:54:10 GMT Organization: Civil Engineering, Monash University, Australia Lines: 15 Can someone please tell me how to change directory in Windows. I'm writing a small application which allows the user to select an application, and start it in the current directory in the File Manager. (I just scan the Windows sub-menu for the directory that's checked). To do that, i need to do a chdir operation. I've tried chdir from the C library, followed by WinExec, but it doesn't work. I've tried prepending the directory name to the application name and calling WinExec. That also doesn't work. I'm sure there is a simple solution to this problem. Any ideas? -- Roger Hadgraft | hadgraft@civeng.monash.edu.au Lecturer in Civil Engineering | Monash University | phone: +61 3 565 4983 Clayton, Vic. 3168. Australia. | fax: +61 3 565 4944 or 3409