If it's just for yourself, that's an okay way to do it. However, if you distribute it and someone installs your script to something like c:\mirc\scriptname\ and it points to something like data\data.txt, mIRC will assume it's in c:\mirc\data\ and it may actually be in c:\mirc\scriptname\data\ instead. That's why $scriptdir is safer.


Invision Support
#Invision on irc.irchighway.net