Jump to content

Drag'n'Drop with CMD Batch


Recommended Posts


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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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