www.delorie.com/djgpp/v2faq/faq175.html | search |
| Previous | Next | Up | Top |
Q: I have this program that behaves differently depending on the name it's called. Under Unix, I just create symbolic links to achieve that, but DOS doesn't support links. Do I have to put several identical programs under different names on my disk??
C:\USR\BIN> stubify -g dj2.exe C:\USR\BIN> stubedit dj2.exe runfile=dj1Voila! Now, when you run dj2, it tells the stub to load the image of dj1, but pass "dj2" in
argv[0].
If you use the DJGPP port of GNU Fileutils 3.13 or later, the ln program there can do the above steps for you if you say this (like on Unix):
ln -s dj1.exe dj2.exe
webmaster donations bookstore | delorie software privacy |
Copyright ⌐ 1998 by Eli Zaretskii | Updated Sep 1998 |
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)