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-06 18:50
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about tencent://Message/?Uin=%num% View 1,561 Replies 5
Original Poster Posted 2007-10-27 14:41 ·  中国 江苏 无锡 电信
新手上路
Credits 13
Posts 5
Joined 2007-09-30 15:43
18-year member
UID 98638
Gender Male
Status Offline
@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?
Floor 2 Posted 2007-10-27 14:58 ·  中国 江西 南昌 电信
初级用户
★★
Credits 193
Posts 98
Joined 2007-01-17 11:56
19-year member
UID 76803
Gender Male
Status Offline
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
这家伙很聪明 什么都没留下
Floor 3 Posted 2007-10-27 15:05 ·  中国 江苏 无锡 电信
新手上路
Credits 13
Posts 5
Joined 2007-09-30 15:43
18-year member
UID 98638
Gender Male
Status Offline
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?
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
tnya +1 2007-12-01 09:49
Floor 4 Posted 2007-12-01 02:52 ·  中国 广东 江门 联通
初级用户
Credits 53
Posts 25
Joined 2007-06-17 05:09
19-year member
UID 91572
Gender Male
Status Offline
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.
Floor 5 Posted 2007-12-06 00:38 ·  中国 广东 广州 教育网
初级用户
★★
Credits 163
Posts 86
Joined 2007-09-05 03:02
18-year member
UID 96588
Gender Male
Status Offline
I want to know too
Floor 6 Posted 2007-12-06 08:51 ·  日本
初级用户
Credits 43
Posts 19
Joined 2007-08-19 08:47
18-year member
UID 95320
Gender Male
Status Offline
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!
Forum Jump: