![]() |
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-12 16:48 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Write a BAT to prevent ppsap.exe from auto-running |
| Printable Version 1,438 / 6 |
| Floor1 EvilFox | Posted 2009-10-09 15:38 |
| 新手上路 Posts 9 Credits 15 | |
|
Here's the idea: keep ppsap.exe disabled by default and rename it. When I need to use it, change the name back, then run PPS. When exiting, close it and rename it again to prevent it from running at startup.
Two goals: 1, when closing PPS, I want to be able to close it at the same time. This can only be solved with a BAT. 2, prevent it from auto-running. There are two ways for this. One is to prevent modification of the registry. But as far as I know, there is no registry monitoring software that doesn't use resources. That means a state could be set and then modified when closing PPS or shutting down. The second method is to change the filename of ppsap.exe. So taken together, changing the filename is a pretty good solution. Just run the following BAT when closing the program. You can use a BAT to start the program, then pause, and when exiting, press Enter once to automatically exit both programs and rename ppsap.exe. Below is my incorrect code. Could some expert please fix it. If there's a better method, please suggest it too. For example, modifying the PPS program, or some other method. |
|
| Floor2 3742668 | Posted 2009-10-09 15:46 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Under NTFS, just forbid it from running or being read.
Or simply use image hijacking, that only requires changing the registry. You can Google it. |
|
| Floor3 EvilFox | Posted 2009-10-09 15:50 |
| 新手上路 Posts 9 Credits 15 | |
|
If you forbid it from running and being read, then it can't accelerate during playback.
After image hijacking, when you exit PPS you still have to close ppsap (it doesn't have to be closed, but in order to squeeze the network dry, and also delete that pgf, I want to close it). Also, I don't know whether image hijacking will get blocked by antivirus software? |
|
| Floor4 3742668 | Posted 2009-10-09 16:00 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
I've always had it disabled, and playback doesn't seem any different. I suspect whether it speeds up downloading or speeds up uploading after all.
Of course, you can also directly use a script to apply and remove restrictions. If you only want to prevent it from running at startup, you can change the permissions of the registry Run key to make it unwritable. But I don't recommend doing that. I remember some software can't install if writing to run and runonce fails during installation (for example, RealPlayer, don't remember the version number). |
|
| Floor5 yishanju | Posted 2009-10-09 18:39 |
| 银牌会员 Posts 1,357 Credits 1,488 | |
|
Just delete it and that's it.
I got annoyed and just deleted it outright. |
|
| Floor6 netbenton | Posted 2009-10-09 19:37 |
| 银牌会员 Posts 752 Credits 1,916 From 广西 | |
|
Although it auto-runs by default, PPS isn't all that overbearing.
Open PPS, click [Tools] => "Options" => On-demand service Remove the "check mark" in front of "Allow starting the PPS accelerator" and that's enough Just check it again when you need it |
|
| Floor7 EvilFox | Posted 2009-10-09 20:15 |
| 新手上路 Posts 9 Credits 15 | |
|
Your "method" is a bit outdated. Is there any more advanced method?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |