Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Can't Drag & Drop onto CMD window?

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 05-22-2007   #1 (permalink)
Gerry Hickman
Guest


 

Can't Drag & Drop onto CMD window?

Hi,

Under Win2k, I can drag a BAT file onto the CMD window from a UNC path
and it will place the path to the file at the prompt ready to run.

On Vista, I just get a "no entry" sign.

I have to do complex builds (e.g. platform SDK) at the command prompt
and on Vista have to type the paths manually.

--
Gerry Hickman (London UK)

My System SpecsSystem Spec
Old 05-22-2007   #2 (permalink)
Joe Richards [MVP]
Guest


 

Re: Can't Drag & Drop onto CMD window?

Yep.

They specifically pulled it out due to a possible security issue. I
don't recall the details but am sore at the change as well. It cannot be
reenabled in the OS.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


Gerry Hickman wrote:
> Hi,
>
> Under Win2k, I can drag a BAT file onto the CMD window from a UNC path
> and it will place the path to the file at the prompt ready to run.
>
> On Vista, I just get a "no entry" sign.
>
> I have to do complex builds (e.g. platform SDK) at the command prompt
> and on Vista have to type the paths manually.
>

My System SpecsSystem Spec
Old 05-22-2007   #3 (permalink)
ackauff@gmail.com
Guest


 

Re: Can't Drag & Drop onto CMD window?

Last I checked, cmd.exe did not support UNC pathnames. I quick try in
Vista has proved fruitless.

My System SpecsSystem Spec
Old 05-23-2007   #4 (permalink)
Joe Richards [MVP]
Guest


 

Re: Can't Drag & Drop onto CMD window?

Do you mean for CWD? If so, that is correct. But it handles UNCS for
most everything else just fine. And you can sort of use UNCs with PUSHD,
it will map a temp drive for you and unmap it when you POPD

[Wed 05/23/2007 11:12:01.37]
G:\>pushd \\r2dc1\sysvol

[Wed 05/23/2007 11:12:09.11] \\r2dc1\sysvol +
V:\>dir
Volume in drive V is DDrive
Volume Serial Number is 1CBF-B292

Directory of V:\

05/11/2006 11:19 PM <DIR> .
05/11/2006 11:19 PM <DIR> ..
05/11/2006 11:19 PM <JUNCTION> test.loc
0 File(s) 0 bytes
3 Dir(s) 129,784,803,328 bytes free

[Wed 05/23/2007 11:12:12.80] \\r2dc1\sysvol +
V:\>popd





--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


ackauff@gmail.com wrote:
> Last I checked, cmd.exe did not support UNC pathnames. I quick try in
> Vista has proved fruitless.
>

My System SpecsSystem Spec
Old 05-24-2007   #5 (permalink)
icefoxtrot
Guest


 

RE: Can't Drag & Drop onto CMD window?

Press shift and right click on your BAT file, click "Copy as Path", in your
CMD windows, click the icon right next to the title "Command Prompt", select
Edit then Paste. All this hassle to prevent a yet to be discovered
vulnerability in earlier version of Windows.

"Gerry Hickman" wrote:

> Hi,
>
> Under Win2k, I can drag a BAT file onto the CMD window from a UNC path
> and it will place the path to the file at the prompt ready to run.
>
> On Vista, I just get a "no entry" sign.
>
> I have to do complex builds (e.g. platform SDK) at the command prompt
> and on Vista have to type the paths manually.
>
> --
> Gerry Hickman (London UK)
>

My System SpecsSystem Spec
Old 05-24-2007   #6 (permalink)
Gerry Hickman
Guest


 

Re: Can't Drag & Drop onto CMD window?

Hi,

I don't think any version of CMD in Windows supports current working
directory as a UNC path, but you should be able to run an executable
from a UNC path?

Joe Richards [MVP] wrote:
> Do you mean for CWD? If so, that is correct. But it handles UNCS for
> most everything else just fine. And you can sort of use UNCs with PUSHD,
> it will map a temp drive for you and unmap it when you POPD
>
> [Wed 05/23/2007 11:12:01.37]
> G:\>pushd \\r2dc1\sysvol
>
> [Wed 05/23/2007 11:12:09.11] \\r2dc1\sysvol +
> V:\>dir
> Volume in drive V is DDrive
> Volume Serial Number is 1CBF-B292
>
> Directory of V:\
>
> 05/11/2006 11:19 PM <DIR> .
> 05/11/2006 11:19 PM <DIR> ..
> 05/11/2006 11:19 PM <JUNCTION> test.loc
> 0 File(s) 0 bytes
> 3 Dir(s) 129,784,803,328 bytes free
>
> [Wed 05/23/2007 11:12:12.80] \\r2dc1\sysvol +
> V:\>popd
>
>
>
>
>
> --
> Joe Richards Microsoft MVP Windows Server Directory Services
> Author of O'Reilly Active Directory Third Edition
> www.joeware.net
>
>
> ---O'Reilly Active Directory Third Edition now available---
>
> http://www.joeware.net/win/ad3e.htm
>
>
> ackauff@gmail.com wrote:
>> Last I checked, cmd.exe did not support UNC pathnames. I quick try in
>> Vista has proved fruitless.
>>



--
Gerry Hickman (London UK)
My System SpecsSystem Spec
Old 05-24-2007   #7 (permalink)
Gerry Hickman
Guest


 

Re: Can't Drag & Drop onto CMD window?

Joe Richards [MVP] wrote:

> They specifically pulled it out due to a possible security issue. I
> don't recall the details but am sore at the change as well. It cannot be
> reenabled in the OS.


This sucks.

They claim every design flaw in Vista is a "possible security issue".

--
Gerry Hickman (London UK)
My System SpecsSystem Spec
Old 05-26-2007   #8 (permalink)
Joe Richards [MVP]
Guest


 

Re: Can't Drag & Drop onto CMD window?

What can one say about it... MSFT makes the OS the way people ask for
it. For a long time the important thing was easy connections and things
just working which put security on the backburner and honestly, a secure
OS is not generally one that is conducive to doing some things.

Then the security landscape changed and the public backlashed against
the lack of security which forced MSFT to change directions to
compensate and in their turn backlashed in that direction. Now we are
seeing the fallout of "our" familiar OS getting all locked down and the
repercussions behind it. Security is always trying to balance
friendliness and usability with the level of secureness needed.

Cross process communications is definitely a point of possible security
issues and dragging a file name from one window to a command prompt is
cross process communications. I have no doubt there was possible
security implications in there somewhere. Was it for that specific
purpose, maybe not, but maybe the method itself was the issue and the
way the drag and drop to command prompt used that method/function and
when the underlying method/function got pulled it wasn't worth the
effort to come up with a new mechanism. If enough people complain and
officially put in change requests to MSFT, maybe that will show it is
worth coming up with a new mechanism.

Now if you want to start complaining about why now things that were one
dialog level deep have been moved 3,4,5 levels deep and things that used
to be on a single dialog are spread across 14 dialogs now I am right
there with you. Some things, things that require an enhancement in
rights and therefore have to be a shield button click extra away I am
fine with. It is the stuff that doesn't fit that criteria that sucks. I
don't want to have to be forced to use search to find everything, I just
want to be have it available when I need it.



--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


Gerry Hickman wrote:
> Joe Richards [MVP] wrote:
>
>> They specifically pulled it out due to a possible security issue. I
>> don't recall the details but am sore at the change as well. It cannot
>> be reenabled in the OS.

>
> This sucks.
>
> They claim every design flaw in Vista is a "possible security issue".
>

My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag and drop in CMD window? =?Utf-8?B?U0FNaW5PWg==?= Vista General 9 02-17-2008 04:24 PM
Drag & Drop from Explorer to CMD window Bernd Nowak Vista General 2 02-27-2007 12:25 PM
drag and drop in command window auser Vista General 11 01-02-2007 09:12 PM
Drag and drop from explorer to command window (cmd) Martin Stein Vista General 7 10-15-2006 10:21 AM
Re: Cannot drag and drop file onto command prompt window EricTsai - ???v?? Vista General 1 04-06-2006 07:52 AM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51