Executing an Exe or a Bat file from a remote machine
Executing an Exe or a Bat file from a remote machine
(OP)
Need to launch a BAT file that resides on a server(remote)
How can one write a DOS shell fucntion via VB (from a client ) to Run the BAT file.
Does not necessarily have be a DOS command. A hidden TELNET session to the remote server and then plainly typing the name of the BAT file would also do the job. Thanks
Sandy
How can one write a DOS shell fucntion via VB (from a client ) to Run the BAT file.
Does not necessarily have be a DOS command. A hidden TELNET session to the remote server and then plainly typing the name of the BAT file would also do the job. Thanks
Sandy
RE: Executing an Exe or a Bat file from a remote machine
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.
If you are mapped to the remote server you could specify the whole path name & bat file. You may need to load the command processor first for example:
Shell("cmd /c X:\Utilities\test.bat", 1)
look up cmd in NT help.
I have also seen rcmd for remote processing but have not used it. Syntax is:
rcmd \\servername path\program
From what I can tell rcmd is available on NT server but not NT workstation.
RE: Executing an Exe or a Bat file from a remote machine
C:\users\default>rexec
Runs commands on remote hosts running the REXEC service. Rexec
authenticates the user name on the remote host before executing the
specified command.
REXEC host [-l username] [-n] command
host Specifies the remote host on which to run command.
-l username Specifies the user name on the remote host.
-n Redirects the input of REXEC to NULL.
command Specifies the command to run.
Mike Lacey
Mike_Lacey@Cargill.Com
RE: Executing an Exe or a Bat file from a remote machine
RE: Executing an Exe or a Bat file from a remote machine
RE: Executing an Exe or a Bat file from a remote machine