06-12-2006, 03:04 AM
I'm trying make some code to open a mp3 file by dropping it over an .exe but I cant figure out how to make my program understand from where the file I'm draging is coming from. Can someone help me with this one?
Dropping a file on an .exe
|
06-12-2006, 03:04 AM
I'm trying make some code to open a mp3 file by dropping it over an .exe but I cant figure out how to make my program understand from where the file I'm draging is coming from. Can someone help me with this one?
06-12-2006, 03:40 AM
Ask Rattrapmax6 :^_^:
Itch-Five Design - Your source for free, well designed, web design.
- - - - - - - - - - - - - Quote:I use QB religiously. Too bad I'm an athiest.
06-12-2006, 03:42 AM
yeah its dead easy.
try this sample program Code: print command$ compile it then drop a file onto it. viola.
06-12-2006, 03:48 AM
Oh, damn! Thanks KiZ. That was quite easy indeed :bounce: . I feel like fool sometimes :lol: Now it'll be easy to do what I want to do.
EDIT: files without spaces in the filename works perfect while thoose with spaces do not. This leaves me a bit confused.
06-12-2006, 06:16 PM
If the filename has spaces, it will be surrounded in "double quotes".
06-12-2006, 07:02 PM
Thats a bit annoying but not very hard to get around. I might sound like a total retard now but, eh... why does it contain double quotes when spaces is involved?
06-12-2006, 07:07 PM
Check what happens when you drop multiple files: COMMAND$ will contain something like "C:\Path With Spaces\a.txt" "C:\Path With Spaces\b.txt". Without the quotes, this would be ambiguous.
|
« Next Oldest | Next Newest »
|