Send a letter with ASP

xiaoxiao2021-03-06  109

<%

DIM WSH

SET WSH = CreateObject ("wscript.shell")

Response.write wsh.run ("Net Send 127.0.0.1 Hi")

SET WSH = Nothing

%>

It is highly recommended that you will change 127.0.0.1 to your computer name, at least set BWAITONRETURN to True anyway, it is very slow on my machine!

Response.write wsh.run ("Net Send 127.0.0.1 Hi", TRUE

-------------------------------------------------

Windows script host

RUN method

Run the program in the new process.

Object.run (strcommand, [intWindowStyle], [BWAITONRETURN])

parameter

Object

WSHSHELL object.

STRCOMMAND

String value indicating the command line to run. You must include all parameters to be passed to the executable.

InTwindowStyle

Optional. Indicates an integer value of the appearance of the program window. Note that not all programs use this information.

BwaitonReturn

Optional. The Boolean value indicates whether the script waits for execution princes before continuing the next statement in the script. If set to True, the script is executed after the completion order is performed, and the RUN method returns any error code returned by the program. If set to false (default), the RUN method will automatically return to 0 (not an error code) immediately after the startup.

<%

DIM WSH, Userip

Userip = request.servervariables ("remote_host")

SET WSH = CreateObject ("wscript.shell")

Wsh.run "Net Send" & Userip & "Please don't mess with messages", True

SET WSH = Nothing

Response.write "This is yourself,"

%>

转载请注明原文地址:https://www.9cbs.com/read-103752.html

New Post(0)