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-12 14:18
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Write a BAT to prevent ppsap.exe from auto-running View 1,436 Replies 6
Original Poster Posted 2009-10-09 15:38 ·  中国 广东 深圳 电信
新手上路
Credits 15
Posts 9
Joined 2006-09-22 21:09
19-year member
UID 63389
Status Offline
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.


echo off  
ren d:\Program Files\PPStream\ppsap.exec ppsap.exe
d:\Program Files\PPStream\ppstream.exe
pause
taskkill /f /im ppstream.exe
taskkill /f /im ppsap.exe
ren d:\Program Files\PPStream\ppsap.exe ppsap.exec
del c:\ppsds.pgf d:\ppsds.pgf e:\ppsds.pgf
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
yishanju +15 2009-10-10 00:06
Floor 2 Posted 2009-10-09 15:46 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
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.
Floor 3 Posted 2009-10-09 15:50 ·  中国 广东 深圳 电信
新手上路
Credits 15
Posts 9
Joined 2006-09-22 21:09
19-year member
UID 63389
Status Offline
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?
Floor 4 Posted 2009-10-09 16:00 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
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).
Floor 5 Posted 2009-10-09 18:39 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Just delete it and that's it.
I got annoyed and just deleted it outright.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
EvilFox -1 2009-10-09 18:45

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 6 Posted 2009-10-09 19:37 ·  中国 广东 东莞 电信
银牌会员
★★★
批处理编程迷
Credits 1,916
Posts 752
Joined 2008-12-28 04:30
17-year member
UID 135147
Gender Male
From 广西
Status Offline
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
精简
=> 个人网志
Floor 7 Posted 2009-10-09 20:15 ·  中国 广东 深圳 电信
新手上路
Credits 15
Posts 9
Joined 2006-09-22 21:09
19-year member
UID 63389
Status Offline
Your "method" is a bit outdated. Is there any more advanced method?
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
yishanju -15 2009-10-10 00:05
Forum Jump: