Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping Drag and Drop 2

Status
Not open for further replies.

smtss

Technical User
May 7, 2006
41
GB
Can anyone suggest away of stopping clients from dragging and dropping folders within side there own folders,

We run Windows 2K Server with XP clients, recently the end users i.e children are dragging and dropping other folders into other locations.

Is there a way of stopping this from the profile.

I have enable all obvious drag and drop options in the security policy which manages the profile but hasn't made and difference.
 
I've found an answer for you....you can administer it with group policy.
I'm a little busy at the moment, but I will knock you up with a ADM file for this in an hour or two.

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
here you go
Code:
CLASS USER
    CATEGORY !!NJCISEDITS
        CATEGORY !!WINEXPLORER
            POLICY !!DisableDragDrop
                KEYNAME "Software\Control Panel\Desktop"

		EXPLAIN !!expDisableDragDrop
                PART !!DragHeight EDITTEXT
                    VALUENAME "DragHeight"
            		DEFAULT 999999
                END PART
		PART !!DragWidth  EDITTEXT
		    VALUENAME "DragWidth"
			DEFAULT 999999
		END PART
            END POLICY
	END CATEGORY
    END CATEGORY

[strings]
NJCISEdits="NJC Info Sys GP Edits"
WINEXPLORER="Windows Explorer"
DisableDragDrop="Disable Drag and Drop"
DragHeight="Drag Height Dimension"
DragWidth=" Drag Width Dimention"
expDisableDragDrop="Enabling this setting will remove all dragging functionality, including the moving of objects within a window, and the moving on non maximised windows./n/nTo reactivate drag and drop, set both settings of Higth and Width to 4.

I assume you know how import ADM files, so I wont bore you with it.....copy the below text and paste into a txt file, save as c:\windows\inf\NJCEdits.adm, make sure you set the Save as Type to "All Files", and dont leave it as txt. Import. Click View from the file menu, filtering, UNCHECK "only show settings that can be fully managed.". This will ensure that you see all the settings

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
One to make note off, thank you.


Carlsberg don't run I.T departments, but if they did they'd probably be more fun.
 
Basically the way it works is, you can define the TweakIO which is defines when the mouse button is held down, how far must it move before it realise it is being dragged. If you have a look, normally, you can move your mouse a tiny bit, slowly before it takes up as a drag movement. The default for this is 4 pixles in any dirrection. This can be set upto, i think 36 pixles....however, by setting this to an invalid number, you can never move the mouse so much that it will ever recognise a drag action message.

You may also be able to use some other invalid character, such as a letter, or -1, or even 0....but I know this SHOULD work....I haven't actually tested the ADM I wrote to see if I spelt everything correctly ETC....

Hope this is what you were looking for.

WARNING
-------
As I state in the explain tab of my ADM, this will also disable the ability to move objects around INSIDE of a window/folder, and will also disable the ability to move a non-maximised window around your desktop.

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top