中国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-06 19:50
48,039 topics / 350,124 posts / today 0 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » Question about tencent://Message/?Uin=%num%
Printable Version  1,564 / 5
Floor1 nightelf Posted 2007-10-27 14:41
新手上路 Posts 5 Credits 13
@Echo Off
:send
Set /p num=Enter the other party's QQ number:
If /I "%num%"=="n" Exit
start tencent://Message/?Uin=%num%
cls
Goto send
This code can start a temporary chat with any QQ user.
What I want to ask is: in the command start tencent://Message/?Uin=%num%, how was the address tencent://Message/?Uin=%num% obtained? For example, if I want to open another function of some program, how can I get a similar address?
Floor2 luowei14 Posted 2007-10-27 14:58
初级用户 Posts 98 Credits 193
Set /p num=Enter the other party's QQ number: //declare the variable num
If /I "%num%"=="n" Exit //if the return is N then exit
start tencent://Message/?Uin=%num% //%num% is just the QQ number you entered, it's that simple
Or you can change it a bit,,,
@echo off
:send
Set /p num=Enter the file and path you want to open (enter n to exit): //enter the full path of the program you want to open! For example E:\qq2007\qq.exe
If /I "%num%"=="n" Exit
start %num%
cls
goto send
Floor3 nightelf Posted 2007-10-27 15:05
新手上路 Posts 5 Credits 13
Thanks for your reply.
That's not what I mean.
With start tencent://Message/?Uin=, no matter where your QQ is installed, it can open a temporary chat for you. What I want to ask is: if I want to call a certain function of another program, how can I get a similar address?
Floor4 htun Posted 2007-12-01 02:52
初级用户 Posts 25 Credits 53
What you mean is, why can start tencent://Message/?Uin= open a temporary chat no matter where your QQ is installed,
right? But I don't know either, I'll wait for the answer with you.
Floor5 penghuahui Posted 2007-12-06 00:38
初级用户 Posts 86 Credits 163
I want to know too
Floor6 halulove Posted 2007-12-06 08:51
初级用户 Posts 19 Credits 43
start, when no directory is specified, will search according to the PATH in the environment variables and execute the first matching program. If it can't find it in PATH, it will report an error!


I don't really understand the OP saying QQ will definitely run!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023