
-----------------------------------
Neo
Mon Aug 21, 2006 4:24 pm

Batch Files
-----------------------------------
Anyone know how to write a batch file that will do the equivalent of dragging one program onto another program? For exmaple dragging a .bmp file onto mspaint.exe.

-----------------------------------
rdrake
Mon Aug 21, 2006 4:40 pm


-----------------------------------
I would imagine it just passes files dropped onto a program as command line arguments.

Let's say you drag "foobar.bmp" onto mspaint.exe.  Chances are pretty good that it equals the following.cmd> mspaint.exe foobar.bmp

Just pass the name of the file you want it to open as a command line argument.
