![]() |
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-09 16:42 |
47,811 topics / 349,896 posts / today 1 new / 48,254 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Question about a BAT file. |
| Printable Version 2,834 / 30 |
| Floor16 zeffortj | Posted 2008-08-28 10:25 |
| 初级用户 Posts 15 Credits 32 | |
|
Friend in the post above, can you give an exact answer? I've already rebooted my machine N times.
|
|
| Floor17 huahua0919 | Posted 2008-08-28 10:29 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
Since it's an application program, then put it in run
Or add a delay in your script before starting your program |
|
| Floor18 zeffortj | Posted 2008-08-28 10:33 |
| 初级用户 Posts 15 Credits 32 | |
|
The reason I put it in the script is precisely because I don't want that program's display box to appear. I want it to execute at startup, or execute in the background.
|
|
| Floor19 huahua0919 | Posted 2008-08-28 10:35 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
The key is whether your program supports interactive execution?
If it does, wouldn't writing a vbs be better |
|
| Floor20 zeffortj | Posted 2008-08-28 10:36 |
| 初级用户 Posts 15 Credits 32 | |
|
I don't know how, hehe. I already said I'm a newbie.
|
|
| Floor21 HAT | Posted 2008-08-28 10:45 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Friend in post #16, I don't have the same test environment as you, so how can I give you an "exact answer"?
The start command in the startup script can't start that service; it may be because when the script is executed at startup, that service still hasn't finished starting. The code in post #15 is for testing that. If you're worried about rebooting the machine, then don't test it. I'll wait with you for an expert's answer :) |
|
| Floor22 zeffortj | Posted 2008-08-28 10:48 |
| 初级用户 Posts 15 Credits 32 | |
|
Hehe, friend, don't be angry, I'm a newbie too and don't understand anything. If I said something wrong, please don't mind it.
We're all learning from each other |
|
| Floor23 zeffortj | Posted 2008-08-28 10:54 |
| 初级用户 Posts 15 Credits 32 | |
|
I just tried again by pointing to the file to be executed in RUN, and it still doesn't work.
|
|
| Floor24 huahua0919 | Posted 2008-08-28 10:56 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
I really don't know whether there's something wrong with your computer
vbs |
|
| Floor25 zeffortj | Posted 2008-08-28 11:01 |
| 初级用户 Posts 15 Credits 32 | |
|
Hehe, by the way, let me ask.
Is this file also put in the script? |
|
| Floor26 zeffortj | Posted 2008-08-28 11:01 |
| 初级用户 Posts 15 Credits 32 | |
|
Or is the file format saved as *.VBS?
|
|
| Floor27 huahua0919 | Posted 2008-08-28 11:02 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
vbs is also a script, the save format is .vbs
|
|
| Floor28 zeffortj | Posted 2008-08-28 11:15 |
| 初级用户 Posts 15 Credits 32 | |
|
Many thanks to the friend in post #24. It seems like it works now. Haha
|
|
| Floor29 huahua0919 | Posted 2008-08-28 11:19 |
| 银牌会员 Posts 780 Credits 1,608 | |
|
Again with "it seems"—either it works or it doesn't
No need to thank me, thank the forum and Brother HAT |
|
| Floor30 everest79 | Posted 2008-08-28 11:32 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
|
The startup script should be saved under %windir%\system32\GroupPolicy\Machine\Scripts\Startup
Then in Group Policy you just need to specify that script's filename, for example radmin.cmd This kind of trojan sometimes needs some services to support it, and it may not be able to start at boot, so it's best added to the user logon script %windir%\system32\GroupPolicy\user\Scripts\Startup |
|
| Prev 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |