![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-26 21:23 |
47,812 topics / 349,912 posts / today 2 new / 48,264 members |
| 其它操作系统综合讨论区 » Help: What DOS command is used within a VLAN to execute a batch file on another machine? |
| Printable Version 1,545 / 9 |
| Floor1 samichang | Posted 2006-03-26 12:04 |
| 初级用户 Posts 18 Credits 64 | |
|
Machine 1 name: zak001
Machine 2 name: zak002 What command can be used in the DOS of zak001 to control the execution of the C:\TEMP\TEST.BAT file in zak002 on this machine? Please give advice from the experts!!! |
|
| Floor2 Climbing | Posted 2006-03-26 18:23 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
Where exactly does the batch processing execute on which machine?
|
|
| Floor3 darkradx | Posted 2006-03-26 21:00 |
| 高级用户 Posts 420 Credits 972 | |
|
Obtain the administrator privileges of zak002
net time and at |
|
| Floor4 samichang | Posted 2006-03-27 13:15 |
| 初级用户 Posts 18 Credits 64 | |
|
The AT command can be executed but is actually ineffective~~
|
|
| Floor5 samichang | Posted 2006-03-27 13:16 |
| 初级用户 Posts 18 Credits 64 | |
|
Execute on another machine. It indicates that the AT command is not working; otherwise, we would use AT.
|
|
| Floor6 Climbing | Posted 2006-03-27 15:21 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
On XP/2003, there is such a command:
rexec It seems that its function is to execute a command on a remote computer, but I don't know how to use it. |
|
| Floor7 samichang | Posted 2006-03-28 09:13 |
| 初级用户 Posts 18 Credits 64 | |
|
Can't do it.. What if the connection is refused.. Is there any other way.. It's a WINNT system
|
|
| Floor8 flysp | Posted 2006-07-09 11:11 |
| 中级用户 Posts 41 Credits 207 | |
|
In zak001
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Create a string value here, and set the value as a UNC path. Just like: \\zak002\C:\TEMP\TEST.BAT. But you need to share the C drive. It's better to put the batch file in a dedicated folder and share that folder. Then when the machine starts, it will automatically run the batch file on the remote computer. |
|
| Floor9 electronixtar | Posted 2006-07-09 12:40 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Re Climbing:
This thing runs commands on a remote computer that is running the REXEC service (daemon), which is only supported by UNIX computers :P Re All: The owner's problem can be solved as follows: 1. Use net use \\zak002\c$\TEMP\ <password> /u:<username> to establish an IPC$ connection 2. Since bat does not support UNC paths, please use copy \\zak002\c$\TEMP\TEST.BAT %temp% to copy this bat to the local 3. Run %temp%\test.bat to run this bat |
|
| Floor10 badcfqtd | Posted 2006-07-12 00:07 |
| 中级用户 Posts 53 Credits 232 From 中国 | |
|
LZ, is this resolved? Say something.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |