Ah yes, this is really the interesting question. I do not know. LOL . I vaguely remember reading a post about it, i believe it checks the System32 folder first. Anyway, I guess you can try to "break" you app by changing the current directory via:

vb Code:
  1. Private Declare Function GetCurrentDirectory Lib "kernel32.dll" Alias "GetCurrentDirectoryA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
  2. Private Declare Function SetCurrentDirectory Lib "kernel32.dll" Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long

Lemme look this up.