![]() |
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-02 11:37 |
48,038 topics / 350,123 posts / today 1 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Where can I find VBS tutorials? Does anyone have any? Can you help me convert this batch script to VBS? |
| Printable Version 2,609 / 12 |
| Floor1 zerostudy | Posted 2006-10-30 02:40 |
| 中级用户 Posts 98 Credits 266 | |
|
Originally, it was to save as killqq.bat
@echo off start h:\wenqq\qq.exe ping 127.0.0.1 -n 5 taskkill /f /t /im TIMPlatform.exe This is saved as .vbs found. The startup batch has no black screen. DIM objShell set objShell=wscript.createObject("wscript.shell") iReturn=objShell.Run("cmd.exe /C killqq.bat", 0, TRUE) When starting, it will first call cmd ping taskkill these commands. @echo off start h:\wenqq\qq.exe ping 127.0.0.1 -n 5 ////Can this be replaced by something else? What command in VBS can be used? taskkill /f /t /im TIMPlatform.exe Kill this. What in VBS? .. Ask for a way to kill the timplatform.exe process with VBS. .. Thank you. timplatform.exe can also be deleted in QQ. But chat rooms and these can't enter `~ |
|
| Floor2 lxmxn | Posted 2006-10-30 03:53 |
| 版主 Posts 4,938 Credits 11,386 | |
|
May I ask the original poster, why do you want to kill the TIMPlatform.exe process? Killing it might cause QQ not to work properly... In VBS, for delay, you can use "Wscript.Sleep 1000" to delay for one second. As for killing the process, I don't know about VBS. I don't know if it calls CMD commands. |
|
| Floor3 zerostudy | Posted 2006-10-30 04:05 |
| 中级用户 Posts 98 Credits 266 | |
|
Because it's just chatting, that process is useless... It takes up memory in vain. So kill it...
|
|
| Floor4 zerocq | Posted 2006-10-30 04:44 |
| 中级用户 Posts 196 Credits 458 | |
|
Ending processes can use VBS + WMI without calling cmd
|
|
| Floor5 不得不爱 | Posted 2006-10-30 22:50 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
It is better to directly delete the TIMPlatform.exe file than to kill the TIMPlatform.exe process
|
|
| Floor6 3742668 | Posted 2006-10-31 01:45 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Code not tested.. |
|
| Floor7 不得不爱 | Posted 2006-10-31 02:22 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
I think it's better like this:
@echo off del h:\wenqq\TIMPlatform.exe start h:\wenqq\qq.exe |
|
| Floor8 zerostudy | Posted 2006-11-03 05:28 |
| 中级用户 Posts 98 Credits 266 | |
|
TIMPlatform.exe
When just chatting normally, this is not useful.. Sometimes you might go to the chat room to chat, and then you need this... |
|
| Floor9 senffon | Posted 2006-11-03 08:33 |
| 初级用户 Posts 66 Credits 118 | |
|
The moderator didn't consider the significance of killing TIMPlatorm.exe! The reason is that in places like internet cafes, sometimes TIMPlatorm.exe may conflict with other software! And TIMPlatorm.exe is resident in memory! If you delete it, some users need it and it won't work! So killing it is the best!
So createobject("wscript.shell").run "cmd.exe",1 'Change the last 1 to 0 to run in the background wscript.sleep 2000 'Delay for 2 seconds, can be modified by yourself str = "TIMPlatform.exe" 'The process name to end for each x in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_ if ucase(x.name) = ucase(str) then x.terminate next This is still pretty good! |
|
| Floor10 zerostudy | Posted 2006-11-03 09:09 |
| 中级用户 Posts 98 Credits 266 | |
Originally posted by 3742668 at 2006-10-31 01:45: |
|
| Floor11 lxmxn | Posted 2006-11-03 10:40 |
| 版主 Posts 4,938 Credits 11,386 | |
Originally posted by zerostudy at 2006-11-3 09:09: It's not a command, but a script written in VBS. Just run it. |
|
| Floor12 windzb | Posted 2006-11-04 01:55 |
| 初级用户 Posts 14 Credits 32 | |
|
Script to hide the window
Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c 批处理 program name, need path",vbhide |
|
| Floor13 不得不爱 | Posted 2006-11-04 02:20 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
TIMPlatorm.exe is just a file that prevents the same QQ number from logging in repeatedly on the same computer. It is optional. There is no such file in my computer, but there is no problem. It's just that one QQ can log in simultaneously.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |