China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-26 19:13
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Help: What DOS command is used within a VLAN to execute a batch file on another machine? View 1,543 Replies 9
Original Poster Posted 2006-03-26 12:04 ·  中国 上海 电信
初级用户
Credits 64
Posts 18
Joined 2006-03-17 09:15
20-year member
UID 52244
Gender Male
Status Offline
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!!!
Floor 2 Posted 2006-03-26 18:23 ·  中国 河北 保定 移动
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Where exactly does the batch processing execute on which machine?
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 3 Posted 2006-03-26 21:00 ·  中国 广东 中山 电信
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
Obtain the administrator privileges of zak002

net time and at
平生进退如飙风
Floor 4 Posted 2006-03-27 13:15 ·  瑞典
初级用户
Credits 64
Posts 18
Joined 2006-03-17 09:15
20-year member
UID 52244
Gender Male
Status Offline
The AT command can be executed but is actually ineffective~~
Floor 5 Posted 2006-03-27 13:16 ·  瑞典
初级用户
Credits 64
Posts 18
Joined 2006-03-17 09:15
20-year member
UID 52244
Gender Male
Status Offline
Execute on another machine. It indicates that the AT command is not working; otherwise, we would use AT.
Floor 6 Posted 2006-03-27 15:21 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
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.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 7 Posted 2006-03-28 09:13 ·  中国 上海 电信
初级用户
Credits 64
Posts 18
Joined 2006-03-17 09:15
20-year member
UID 52244
Gender Male
Status Offline
Can't do it.. What if the connection is refused.. Is there any other way.. It's a WINNT system
Floor 8 Posted 2006-07-09 11:11 ·  中国 河南 郑州 电信
中级用户
Credits 207
Posts 41
Joined 2004-10-24 00:00
21-year member
UID 32885
Gender Male
Status Offline
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.
Floor 9 Posted 2006-07-09 12:40 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Re Climbing:


There is such a command on xp/2003:
rexec


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

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 10 Posted 2006-07-12 00:07 ·  中国 山东 青岛 联通
中级用户
★★
Credits 232
Posts 53
Joined 2005-08-24 07:03
21-year member
UID 41889
Gender Male
From 中国
Status Offline
LZ, is this resolved? Say something.
Forum Jump: