中国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-02 09:08
48,037 topics / 350,122 posts / today 0 new / 48,250 members
DOS批处理 & 脚本技术(批处理室) » How to write "open a certain file with a specified program"?
Printable Version  1,519 / 9
Floor1 huzixuan Posted 2006-11-09 09:03
高级用户 Posts 219 Credits 537 From 芜湖
Now there is 1.mp3.
I want to use 1.exe to open it.

Because if I directly open 1.mp3, it will be opened with my default player.
I want to open it with Qianqian Jingting.......
I don't know if it will work.
Floor2 vkill Posted 2006-11-09 09:09
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Set file association
Assoc /?
Ftype /?
Floor3 huzixuan Posted 2006-11-09 09:12
高级用户 Posts 219 Credits 537 From 芜湖
Is it about setting file associations? Now we need to associate a program...
Floor4 namejm Posted 2006-11-09 09:19
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Try the format of "program path" "file name".
Floor5 vkill Posted 2006-11-09 09:19
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Originally posted by huzixuan at 2006-11-9 09:12 originally posted by huzixuan:
Is it setting file associations?
Now it's about associating a program...

Assoc /?
Ftype /?
First, take a look at these two help files!
Floor6 huzixuan Posted 2006-11-09 09:21
高级用户 Posts 219 Credits 537 From 芜湖
It seems okay, thanks moderator. Test in depth tomorrow, thanks
Floor7 huzixuan Posted 2006-11-09 09:26
高级用户 Posts 219 Credits 537 From 芜湖
Well, also thank vkill for the help. Take a good look at those two commands as well
Floor8 electronixtar Posted 2006-11-09 10:43
铂金会员 Posts 2,672 Credits 7,493
D:\players\ttplayer.exe E:\music\list.m3u
Floor9 eech Posted 2006-11-11 04:30
高级用户 Posts 346 Credits 906
Friend upstairs. I tried what you wrote, it doesn't work.

F:\she din soft\KMPlayer\kmplayer.exe E:\音乐\helene segara - encore une fois 情缘再继.wav

[ Last edited by eech on 2006-11-11 at 04:32 AM ]
Floor10 electronixtar Posted 2006-11-11 04:37
铂金会员 Posts 2,672 Credits 7,493
Friends on the road, just enclose the full path of kmplayer and the final song path with " "

"F:\she din soft\KMPlayer\kmplayer.exe" "E:\音乐\helene segara - encore une fois 情缘再继.wav"

If there are spaces in the path, quotes must be used~~~ (this is the nth time I've solved such a problem)
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023