Instead of calling the .exe directly, call a .PIF - you can then specify directories and minimised etc.
>I have recently started to use INI files to configure some of my mini-apps. But one app in particular is being run overnight on an NT Server, but with a different start-up directory than the EXE (as the start-up dir cannot be specified from the scheduler). This resulted in my app not being able to find it's INI file.
>
>This problem cannot be sorted from the NT side, but can be sorted by me hard-coding in the directory+iniFileName into my app, but I was wondering if there was another way of tackling this without having to hard-code any directories.
>
>Any ideas?
>Thanks
>Kev
Will Jones