1. What, you say CurrentDir gives you a diffrent value depending on if you used CommandLine before or not?
2. How do you use Commandline, an external app is calling your exe with an argument, or you drop a file onto the exes icon in the explorer, or you used the IDE's command line option?
3. Did you already a Print commandline$(): waitkey() ? Just to see what's going on.
Note: when you dragndrop an icon onto your exes icon, the path will be given in its old msdos form, 8.3 thingie, like joe~27.htm
2. How do you use Commandline, an external app is calling your exe with an argument, or you drop a file onto the exes icon in the explorer, or you used the IDE's command line option?
3. Did you already a Print commandline$(): waitkey() ? Just to see what's going on.
Note: when you dragndrop an icon onto your exes icon, the path will be given in its old msdos form, 8.3 thingie, like joe~27.htm