Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Batch File Drag and Drop
Name: Adam Date: February 12, 2002 at 22:22:34 Pacific
Comment:
Okay, let's say that there's an exe called "Program" and you can apply files with it using a command switch, like this:
Program.exe -file example.tst
So it would run Program.exe using the example.tst file. Now let's say that I had a whole bunch of "tst" files and I wanted to make it so that I could drag and drop one of the "tst" files onto a batch file and the batch file would then run Program.exe using whatever file I dragged and dropped. What would the batch file have to look like? I hope that isn't too confusing. Thanks!
Name: bundat Date: February 13, 2002 at 00:14:47 Pacific
Reply:
try:
::start program.exe %1 ::end
i am not sure if this will work.
0
Response Number 2
Name: Adam Date: February 13, 2002 at 08:09:05 Pacific
Reply:
Yeah, I did try that before I made the post on this board and it didn't work, which is why I made the post.
0
Response Number 3
Name: Michael Date: February 13, 2002 at 14:10:37 Pacific
Reply:
You can't do that in batch... Try visual basic script. Do a google search for windows scripting host.
-Michael
0
Response Number 4
Name: Secret_Doom Date: February 13, 2002 at 20:58:12 Pacific
Reply:
Michael is right, I don't think that is possible in batch.
However, you could make a script to generate a numbered list, so you would only have to access that batch file and type a number in order to run the program with a specific file.
-- Secret_Doom - Leonardo Pignataro --
secret_doom@hotmail.com www.batch.hpg.com.br
0
Response Number 5
Name: Beretta Date: April 30, 2002 at 04:31:00 Pacific
Summary: I have a nice little batch file that my friend made: copy /y/b %1+,, %0\..\. %0\..\pack.exe %0\..\dfbase.pff %1 The first line copies a file dragged ONTO the batch file. It actually only copies it ont...
Summary: You leave a lot of puzzles with your question such as what CD recording software do you have. Now days you usually drag and drop what you want to include on the CD-R. With direct cd for (CD-RW)...