Categories

Links

Drag and drop over Batch files doesn't work ?

Published: Oct 06, 2005
Send your feedback

Problem

Drag and drop does over .BAT files has stopped working?

Example:

If you create a batch file with the following contents:

echo file: %1
pause

and then drag a file over the batch file, the result should be as follows:

file: filename.ext

Suddenly the drag-drop has stopped working. How to fix this problem?

Resolution

Click Start, Run and type these commands:

  1. cmd /c ftype batfile="%1" %*
  2. cmd /c assoc .bat=batfile
  3. regsvr32 /i shell32.dll