#usage "Usage of argv

\n" "Returns the path of the ULP

" "Author: alf@cadsoft.de" void main(void) { string ulp_path = ""; char c = '/'; int pos = strrchr(argv[0], c); if (pos >= 0) { ulp_path = strsub(argv[0], 0, pos + 1); } dlgMessageBox(ulp_path , "+OK"); }