well, since i have multiple threads, i think using the windows equivalent to chdir would affect all threads. But thats not a good idea, because one script has to run in a different directory than a other.
But thanks for the eval_pv hint; i will be testing it!