CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (10 messages)

#80043 Cur Dir Quiz? Message #80192
Scott, thanks for the response. Sounds like a first good step. Now what about this (starting from your example: E:\MSTOOLS\BIN): 1. SetCurrentDirectory(".."); 2. GetCurrentDirectory(); -> does it return E:\MSTOOLS? 3. SetCurrentDirectory("C:"); 4. GetCurrentDirectory(); -> returns C:something, right? 5. SetCurrentDirectory("E:"); 6. GetCurrentDirectory(); -> now the $64,000 question: do you get E:\MSTOOLS…
#79678- #Cur Dir Quiz? Message #80043
I tested this behavior on Windows NT 3.5 (build 807), utilizing the following p-code SetCurrentDirectory("E:"); GetCurrentDirectory(); The buffer returned by GetCurrentDirectory() contained the current directory on the E: drive (in my case, E:\MSTOOLS\BIN) Regards, Scott Field Microsoft Corp. There is 1 Reply. Read action !
#79929 Cur Dir Quiz? Message #80032
> You have described exactly what I tried. However, specifying > either "D:" or "D:." does not give the desired result of > remembering" the current directory on the drive. It really > changes to root every time, as far as I can tell. (Trying "D:\" > does change to…
#79905 Cur Dir Quiz? Message #79929
From: Syndesis Microsoft Win32 SDK Forum · API-Base/Console September 30, 1994 2:26 PM
You have described exactly what I tried. However, specifying either "D:" or "D:." does not give the desired result of "remembering" the current directory on the drive. It really changes to root every time, as far as I can tell. (Trying "D:\" does change to root, too. 🙂 ) Read…
#79842 Cur Dir Quiz? Message #79905
From: Steve Shelley Microsoft Win32 SDK Forum · API-Base/Console September 30, 1994 11:09 AM
> But then my file dialog would need to keep a dynamic list of the > last-used directory on each drive. I doubt that the Common Dialog > does that, for example – how could it keep a persistent list? > There must be another way. Oops, I don't think…
#79837 #Cur Dir Quiz? Message #79842
From: Syndesis Microsoft Win32 SDK Forum · API-Base/Console September 29, 1994 10:17 AM
But then my file dialog would need to keep a dynamic list of the last-used directory on each drive. I doubt that the Common Dialog does that, for example – how could it keep a persistent list? There must be another way. There is 1 Reply. Read action !
#79678- Cur Dir Quiz? Message #79837
From: Steve Shelley Microsoft Win32 SDK Forum · API-Base/Console September 29, 1994 8:11 AM
> 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…
From: Larry Bank Microsoft Win32 SDK Forum · API-Base/Console September 27, 1994 4:32 PM
John, I don't think I can help you, but I have come up with a workaround for my problem that is not too inconvenient for my customers. The workaround is to use the LABEL command after formatting a drive to make sure that the volume label appears in the root…
From: Syndesis Microsoft Win32 SDK Forum · API-Base/Console September 27, 1994 8:44 AM
I reported a different bug with GetVolumeInformation()… or at least I think it's a bug. See message 79238 if it's still around. (It should be.) I've continued to tinker with this and I can't get it to work. I've used both the GetLogicalDrives and GetLogicalDriveStrings to find the valid drives…
From: Larry Bank Microsoft Win32 SDK Forum · API-Base/Console September 25, 1994 6:07 PM
All, When GetVolumeInformation() is called for a network redirected drive, it returns a bogus volume label if the volume label is only stored in the boot sector. Backgrounder: Starting with DOS 4.0, the volume label can appear in the boot sector, or can be a specially marked file in the…