Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Batch Files
Index -> Off Topic
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Neo




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Mon Aug 21, 2006 4:40 pm   Post subject: (No 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.
Display posts from previous:   
   Index -> Off Topic
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: