When you drag a file or a folder to a Command Prompt window in Windows Vista, the path of the file or the path of the folder does not appear in the Command Prompt window as expected.
Note If you perform the same action in Microsoft Windows XP, the path of the file or the path of the folder appears in the Command Prompt window.
This issue occurs because of design changes that are intended to enhance security in Windows Vista.
To work around this issue, paste the path of the file or the path of the folder in the Command Prompt window. To do this, follow these steps:
- Start Windows Explorer, and then locate the file or the folder from which you want to copy the path.
- Press SHIFT, right-click the file or folder, and then click Copy as Path.
- Right-click anywhere in the Command Prompt window, and then click Paste. The path of the file or folder is pasted at the command prompt.
Note If you have the Quick Edit mode enabled for the Cmd.exe program, you do not have to click Paste. The path appears at the command prompt when you right-click anywhere in the Command Prompt window. For more information about how to enable the Quick Edit mode, see the "More Information" section.
To enable the Quick Edit mode for the Cmd.exe program, follow these steps:
- Click Start
Collapse this imageExpand this image
, type cmd in the Start Search box, and then click cmd.exe in the Programs list.
Collapse this imageExpand this image
If you are prompted for an administrator password or confirmation, type your password or click Continue. - Press ALT+SPACE to open the shortcut menu for the Command Prompt window, and then click Properties.
- In the "drive:\Windows\system32\cmd.exe" Properties dialog box, click the Options tab.
- Click to select the Quick Edit Mode check box, and then click OK.
Article ID: 929457 - Last Review: March 15, 2007 - Revision: 1.6
APPLIES TO
- Windows Vista Business
- Windows Vista Enterprise
- Windows Vista Home Basic
- Windows Vista Home Premium
- Windows Vista Ultimate
- Windows Vista Enterprise 64-bit Edition
- Windows Vista Home Basic 64-bit Edition
- Windows Vista Home Premium 64-bit Edition
- Windows Vista Ultimate 64-bit Edition
- Windows Vista Starter
| kbexpertisebeginner kbtshoot kbprb kbenv KB929457 |