File cruncher

Blitz3D Forums/Blitz3D Beginners Area/File cruncher

fox95871(Posted 2013) [#1]
Okay, I made that term up for fun, but I don't know what else to call it. One of the modding programs for I think The sims 1 allowed you to drag a file onto an exe, and then another file would appear in that same folder. Ultimately, what I want to do is have it so users can drag files onto the "cruncher" and have it replace the dummy data in the main media file. This isn't a from scratch help request, I know how to manipulate my own data files, I just need help with, how the heck did they do that drag and drop thing!


Kryzon(Posted 2013) [#2]
In Windows, when you drag and drop a file onto an executable, the executable is ran with the dropped file's path appended to its command line.

http://superuser.com/questions/472970/how-to-pass-a-filename-by-drag-and-drop-to-a-shortcut-in-windows

http://blitzbasic.com/b3ddocs/command.php?name=CommandLine&ref=2d_cat


fox95871(Posted 2013) [#3]
Cool, thanks.