Drag and drop over Batch files doesn't work ?
Published: Oct 06, 2005Send 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:
- cmd /c ftype batfile="%1" %*
- cmd /c assoc .bat=batfile
- regsvr32 /i shell32.dll