Welcome to MS Vista Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Can't Drag & Drop onto CMD window?

 
   MS Vista Forums (Home) -> Security RSS
Next:  EFS recovery  
Author Message
Gerry Hickman

External


Since: Nov 13, 2006
Posts: 78



(Msg. 1) Posted: Tue May 22, 2007 11:32 pm
Post subject: Can't Drag & Drop onto CMD window?
Archived from groups: microsoft>public>windows>vista>security (more info?)

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)

 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
ackauff

External


Since: May 22, 2007
Posts: 4



(Msg. 2) Posted: Tue May 22, 2007 11:32 pm
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
Joe Richards [MVP]

External


Since: Apr 29, 2007
Posts: 9



(Msg. 3) Posted: Tue May 22, 2007 11:32 pm
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
>
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
Joe Richards [MVP]

External


Since: Apr 29, 2007
Posts: 9



(Msg. 4) Posted: Wed May 23, 2007 11:12 am
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


wrote:
> Last I checked, cmd.exe did not support UNC pathnames. I quick try in
> Vista has proved fruitless.
>
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
icefoxtrot

External


Since: May 24, 2007
Posts: 1



(Msg. 5) Posted: Thu May 24, 2007 12:58 am
Post subject: RE: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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)
>
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
Gerry Hickman

External


Since: Nov 13, 2006
Posts: 78



(Msg. 6) Posted: Thu May 24, 2007 11:16 pm
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
>
>
> wrote:
>> Last I checked, cmd.exe did not support UNC pathnames. I quick try in
>> Vista has proved fruitless.
>>


--
Gerry Hickman (London UK)
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
Gerry Hickman

External


Since: Nov 13, 2006
Posts: 78



(Msg. 7) Posted: Thu May 24, 2007 11:18 pm
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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)
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
Joe Richards [MVP]

External


Since: Apr 29, 2007
Posts: 9



(Msg. 8) Posted: Sat May 26, 2007 9:22 pm
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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".
>
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
cniggeler

External


Since: Mar 12, 2010
Posts: 1



(Msg. 9) Posted: Fri Mar 12, 2010 1:00 pm
Post subject: Re: Can't Drag & Drop onto CMD window? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, for those of you searching and are now on Windows 7, this
drag-and-drop feature can be enabled if you turn off UAC (i.e., the very
bottom setting).


--
cniggeler
 >> Stay informed about: Can't Drag & Drop onto CMD window? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Drag and Drop Problems (UAC related) - I can't seem to drag and drop a file from Windows Explorer with elevated privileges to Notepad (or any other editor) with elevated privileges. Why not? Both have elevated privileges, so it should work. (BTW, I can use the right-click/sendTo method,..

Drop files to CMD.EXE - In previous OS Versions it is possible to drag a file into the cmd.exe window to get the full path inserted into cmd.exe. When I try to do this in vista it is not possbile(get a stop sign). Is this behavior configurable? I guess this is a securityx..

Does UAC Drop Privileges From Inbuilt Groups Other Than Ad.. - User Account Control appears to be dropping privileges from inbuilt groups other than just Administrators (except Authenticated Users)? I use a separate logical drive for data and use "standard" user accounts. The partition is NTFS-formatted...

UAC and Frontmost Window - The other day I was installing a program (iTunes) on Vista, and when the installer started, I clicked on a different app to bring that window to the front. At some point during the installation, the UAC needed to click in and blank out the screen,..

Window blocked startup programs - When I start Vista, I always get a popup that says Windows blocked some startup programs. When I go into Windows Defender to find out what is being blocked, I get the list of programs loaded at startup, and each is either designated "Permitted&...
   MS Vista Forums (Home) -> Security All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]