Re: can someone help me ?
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jan 05, 2000
- 535 views
On Wed, 5 Jan 2000 19:02:28 +0100, Flaminio Ranzato <newpow at TIN.IT> wrote: >> How to know if started from start menu. Flaminio: In start menu edit properties of short-cut menu to pass a parameter when it starts your program. Example c:\startup\myprogram.exe startmenu When your program is started use the command_line function to check command line arguments and see if the command line has the word "startmenu" in the command_menu. If you don't find the word then the program was not started by from the start menu. If you do not want the user to have to edit the short-cut; then you can just make a batch file contaning c:\startup\myprogram.exe startmenu in it. Then the user can just copy the batch file into the startup directory. I hope this helps you. Have a happy new year ! Bernie