What is a hostname to use in UNC paths that refers to the current machine in XP?
Except that localhost doesn't work. What will work?
use the actual computername or \\127.0.0.1\share\file.txt
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
COMPUTERNAME is an environment variable that has the local computer's hostname. So \\%COMPUTERNAME%\Share will work provided the process is running on the local computer.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago