Jump to content

Recommended Posts

Posted

Hi guys! :hello: Is it possible for you to create a CMD batch file that supports Drag'n'Drop? I need to Drag'n'Drop some files to the batch window and it shoud copy these files to a directory i've chosen. Mhh... maybe i demand too.


Posted

Hi guys! :hello: Is it possible for you to create a CMD batch file that supports Drag'n'Drop? I need to Drag'n'Drop some files to the batch window and it shoud copy these files to a directory i've chosen. Mhh... maybe i demand too.

Sure :), it's actually "normal".

The FILENAME (including path and surrounded by quotes if needed) of what you "drop" on a CMD file is actually parameter %1.

Create this and save it as DROPONME.CMD:

@ECHO OFF
ECHO %1

PAUSE

Drag and drop on it *any* file.

jaclaz

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...