![]() |
| ||
| Capturing contents of launching file I've configured my Windows system to launch my application when someone opens a file with a specific extension (example: launchMyApp.xyz). Much like double-clicking on document.txt will open Notepad. launchMyApp.xyz contains a series of strings that I want to use in my application. What I can't figure out how to do is capture the contents of launchMyApp.xyz. How can I determine the contents of the file used to launch my application? |
| ||
| Re: Capturing contents of launching file If your application is a Windows Forms Application, you could use the Load eventhandler and do whatever you want to do in it. |
| ||
| Re: Capturing contents of launching file Personally I hate the idea of using the load event. Anything that runs in the load event which causes a block can leave the poor soul wondering if they ever launched it. What is a good idea is a timer, pass the timer the work and have the form load - all work of any potential delay should go in timers anyway, its a good practice to get into, so wether its retieve some file from the internet, or open a crappy text file of 1k on your HD... What if that file suddenly was 20gb? Would you have your user on their 33.6k modem wait the week before your app launched? |
| All times are GMT -4. The time now is 11:52 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC