VB.EXE "Save Text" Overwrite Prompt Can Show Unusual .. Path

ID Number: Q79258

1.00

WINDOWS

buglist1.00

Summary:

Visual Basic can, under specific conditions, display a save path that

is technically correct yet does not conform with other Windows

applications, for example:

c:\Dir1\SubDir2\..\SubDir1\Form1.TXT

Microsoft has confirmed this to be a problem in Visual Basic version

1.0. We are researching this problem and will post new information

here as it becomes available.

More Information:

Steps to Reproduce Problem

--------------------------

Assume the following directory structure:

c:\Dir1\SubDir1

c:\Dir1\SubDir2

1. Run Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running. Form1 will be created by

default.

2. From the Code menu, choose Save Text (ALT, C, S).

3. Enter c:\Dir1\SubDir1\FORM1.TXT as the full path and filename.

4. From the Code menu, choose Save Text (ALT, C, S) again.

5. Change directories in the Directories list box so that the path

(appearing above the Directories heading) is \Dir1\SubDir2.

6. Enter the following as the filename:

..\SubDir1\Form1.txt

The two periods (..) is an MS-DOS representation for the parent

directory of SubDir1.

You will be prompted with the expected "Overwrite File" message, but

the path displayed in the MsgBox looks like the following:

c:\Dir1\SubDir2\..\SubDir1\Form1.txt

This path is logically correct but looks rather confusing. In this

situation, other Windows applications would simply display the

following:

..\SubDir1\Form1.txt

Additional reference words: 1.00