hadgraft@civeng.monash.edu.au (Roger Hadgraft) (09/15/90)
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
pnl@hpfinote.HP.COM (Peter Lim) (09/18/90)
> 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. > What about WinExec (chdir followed by the command) ? Problem is can you pass two command to one WinExec ?? Sorry, my Windows programming is still in its infancy. Just trying a long shot here. :-). Regards, ## Life is fast enough as it is ........ Peter Lim. ## .... DON'T PUSH IT !! >>>-------, ########################################### : E-mail: plim@hpsgwg.HP.COM Snail-mail: Hewlett Packard Singapore, : Tel: (065)-279-2289 (ICDS, ICS) | Telnet: 520-2289 1150 Depot Road, __\@/__ ... also at: pnl@hpfipnl.HP.COM Singapore 0410. SPLAT ! #include <standard_disclaimer.hpp>