-4

I've an old program that use relative path to get mail templates. The relative path point to local folder on the project folder . My problem is that the program transalte the relative path to c:\windows\system32... . The os is server 2008 . There is any configuration work around that i need to do ?

Thanks in advance ,

Ishay .

politrok
  • 1
  • 1
  • Possibly related Q/answer. http://stackoverflow.com/questions/837488/how-can-i-get-the-applications-path-in-net-in-a-console-app – gideon Jul 21 '11 at 05:34

1 Answers1

0

You should use GetFullPathName function for converting relative path to full path, but pay attention YOU SHOULD NOT USE THIS FUNCTION IF YOUR PROGRAMM IS MULTITHREADED

Anton Semenov
  • 6,227
  • 5
  • 41
  • 69