中国DOS联盟论坛

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-01 23:14
48,037 topics / 350,122 posts / today 2 new / 48,250 members
DOS批处理 & 脚本技术(批处理室) » [Help] A batch file question for DOS experts
Printable Version  1,001 / 6
Floor1 kina2008 Posted 2006-08-02 17:24
初级用户 Posts 7 Credits 22
I want the client machine to automatically download stuff from the server, download it as soon as it boots, and run it.
How should this command be written???

When XP downloads and runs a shared file, there will be a confirmation window... how can I automatically confirm it in a batch file???



When the client boots up... check the network... once connected, download a file from HTTP, FTP, or a shared path... and run it??
How do I write this batch file????

I'm really a newbie... I just can't figure it out...



Also... how do you write a batch file test to determine whether the network is connected???
Floor2 kina2008 Posted 2006-08-02 17:40
初级用户 Posts 7 Credits 22
Ugh...
No way??
Is the DOS forum this quiet now??

[ Last edited by kina2008 on 2006-8-2 at 17:45 ]
Floor3 TEMPlxj Posted 2006-08-02 18:37
初级用户 Posts 20 Credits 48
Floor4 kina2008 Posted 2006-08-02 18:43
初级用户 Posts 7 Credits 22
Mm-hmm... THANK... thanks....
STANT means running a file, right??

:run
start /min /b \\BAK\桌面$\arp.bat
start \\bak\桌面$\桌面.exe
start /min /b \\bak\桌面$\ie.bat

Can you explain these lines?
Floor5 kina2008 Posted 2006-08-02 18:44
初级用户 Posts 7 Credits 22
But after executing the STANT statement...
it seems EXIT can't be used. . Should QUIT be used instead??
Floor6 TEMPlxj Posted 2006-08-03 04:34
初级用户 Posts 20 Credits 48
start /min /b \\BAK\桌面$\arp.bat
start \\bak\桌面$\桌面.exe
start /min /b \\bak\桌面$\ie.bat

arp.bat 桌面.exe ie.exe are all batch files I wrote because I needed them, you can remove them too.

Explanation of start parameters
min minimize the window when executing
b Starts an application without creating a new window. Unless
^C handling is enabled, the application will ignore ^C handling;
^Break is the only way to interrupt the application
Also, when using start to run a program, it has to wait until the program being run ends before continuing to execute the next line. "exit" is just an exit statement; suppose you use "exit" in ie.bat, the effect is the same
This batch file works on xp home and pro
Floor7 kina2008 Posted 2006-08-03 23:47
初级用户 Posts 7 Credits 22
And also this:
When XP downloads and runs a shared file, there will be a confirmation window... how can I automatically confirm it in a batch file???
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023