Computer Science Canada Batch Files |
Author: | Neo [ Mon Aug 21, 2006 4:24 pm ] |
Post subject: | 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. |
Author: | rdrake [ Mon Aug 21, 2006 4:40 pm ] |
Post subject: | |
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. Quote: cmd> mspaint.exe foobar.bmp
Just pass the name of the file you want it to open as a command line argument. |