RE: bajaãBY: Ace to ALL on Wed Feb 13 2002 09:17 pmãã > Is there an easy way to do this in baja?ã > ã > If xxxx.bin is running from logon/login, show/do thisã > If it is running from elsewhere (ie. a menu), do this insteadãããSure, you use command line paramters when calling your module from eachãlocation. Then you just need to do a simple check of them to see what code toãexecute.ããYou would execute the module something like:ããexec "*MYMOD -option1 -option2"ãããThen, at the beginning of your module somewhere right before entry point justyãadd a couple lines like this to grab the command line paramters before str getsãover written. (the command line parameters are automatically put into "str"ãwhen you execute a BAJA modules).ãã#########ãcopy cmdline strãstrupr cmdlineã#########ããFrom there is simple checks on the cmdline variable to control where yourãprogram goes.ããPGãã---ã þ Synchronet þ WasteLand BBS þ
telnet://wasteland-bbs.com ã