When I try to use "%~dp0" in batch files stored on remote servers, sometimes it takes a good 45 seconds for the path to resolve! I have a fast connection and doing other things with these remote servers is quick.
Is this normal? Is there any way around it? Any help would be greatly appreciated.