Execute Applications on Remote Systems

Zoltan Csizmadia (view profile) April 13, 2001 |
.
Environment: NT4 SP6, Win 2000 SP1, Visual C++ 6.0
Overview
xCmd v1.0 for NT4/2000 - executes commands remotely The executable is compiled and linked on Windows 2000 SP1, VC++ 6.0 SP4 and
in multithreaded DLL mode.Features
xCmd.exe \\remote dir
xCmd.exe \\remote cmdUsage
Freeware! 2001 Zoltan Csizmadia, zoltan_csizmadia@yahoo.com
Usage: xCmd.exe \\computer [options] command/exe arguments
Options:
/D:directory
Set working directory
Default: Remote "%SystemRoot%\System32"
/IDLE
Idle priority class
/NORMAL
Normal priority class
/HIGH
High priority class
/REALTIME
Realtime priority class
/C
Copy the specified program to the remote machine's
"%SystemRoot%\System32" directory
Commands's exe file must be absolute to local machine
/USER:user
User for remote connection
/PWD:{password|*} Password for remote
connection
/NOWAIT
Don't wait for remote process to terminate
Examples:
xCmd.exe \\remote cmd
xCmd.exe \\remote /user:administrator dir c:\
xCmd.exe \\remote /user:somebody /pwd:* /d:d:\ test1.exe
/p1 /p2
xCmd.exe \\remote /c /user:somebody /pwd:* /d:d:\ test2.exe
/whatever
- Input is passed to remote machine when you press the ENTER.
- Ctrl-C terminates the remote process
- Command and file path arguments have to be absolute to remote machine
If you are using /c option, command exe file path must be absolute to
local machine, but the arguments must be absolute to remote machineHow does it work?
Notes
So if you get some errors, rebuild your executable from the source (xCmd.dsw).
From : http://www.codeguru.com/cpp/i-n/network/remoteinvocation/article.php/c5433/