Find out who woke me up in VB6
-
I want to be able to start my app (vb 6) by "throwing" a file on it (via sendto). When the app starts i want to catch the name of the file that triggered the application to start... Is this possible in vb 6...? Or do I have to have my application running when "throwing" the file at it? (I don't need to open or manipulate the file in any way: I just want to be able to catch the filename)
-
I want to be able to start my app (vb 6) by "throwing" a file on it (via sendto). When the app starts i want to catch the name of the file that triggered the application to start... Is this possible in vb 6...? Or do I have to have my application running when "throwing" the file at it? (I don't need to open or manipulate the file in any way: I just want to be able to catch the filename)
Simple, when that happens, your app gets launched with the full path and name of the file as it's command line parameter:
MyVBApp.exe C:\Documents and Settings\MyId\Desktop\TestFile.txt
All you have to do then is get the command line arguments from Command(). RageInTheMachine9532
-
Simple, when that happens, your app gets launched with the full path and name of the file as it's command line parameter:
MyVBApp.exe C:\Documents and Settings\MyId\Desktop\TestFile.txt
All you have to do then is get the command line arguments from Command(). RageInTheMachine9532
RageInTheMachine, that was a peace of cake! Thanks a lot!