Information générale
Titre:
Remote computer name
Hi! I would like to seek your help on how i can get the computer name of my remote users. One of the menu of my system is to create a text file in the user's local drive. My codes are:
<%
filen = request.form("filen")
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\" & filen & ".txt", True)
%>
But this codes created a text file in the server's local drive instead of the user's local drive.
I tried using the code: Request.ServerVariables("remote_addr") so that I can get the IP address of the user. I shared one folder in drive C of the user. I use the IP address instead of the computer name to make a path to the user's PC but it did not work. It can't find the PC. Thanks in advance.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement