Cur Dir Quiz?
> For example, if I use the dialog to get to directory D:\SAMPLE,
> then use the drive combo box to change to drive C:, then use it to
> get back to D:, I want to return to directory D:\SAMPLE instead of
> D: root.
>
> I've tried doing a SetCurrentDirectory() with just the drive "D:"
> as well as "D:.". GetCurrentDirectory() always reports that I've
> 'cd'd to the root.
You probably need to use "D:\SAMPLE" or in general, the full directory name the
user has asked you to 'move to'. "D:" or "D:." do nothing, they're just
telling SetCurrentDirectory() to set drive D's directory to where it already is
right now (which is probably the root by default).
Stan Pensak – Intec Controls Corp.
Read action !re ply
Enter reply. (/EXIT when done)
1: But then my file dialog would need to keep a dynamic list
2: of the last-used drive oirectory on each drive. I doubt that
3: the Common Dialog does that, for example – how could it
4: keep a persistent list? ? There must be another way.
5: /post
Message # 79842 posted