Re: Current Working Directory



Nick,

Use GetCommandLine and extract the path your app is in (might be a bit tricky though).
Use SetCurrentDirectory to change the current dir.

Ben

Writing a GTK app under win32. When I use "Open With" to open a file with my app, the current working directory is the one the file is in rather than the one my app is in.

How can I set the cwd to the path my app is in?

Cheers
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]