DOS程序更改文件关联 [英] DOS Program to Change File Associations

查看:62
本文介绍了DOS程序更改文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可以改变文件关联的DOS命令行c / c ++程序源代码

。换句话说,它可以导致任何

版本的Windows将特定.exe文件与

特定文件扩展名关联。


如果源代码适用于Borland's
免费DOS命令行C / C ++编译器,那将是更好的选择。

I''m looking for the source code for a DOS command line c/c++ program
that can change file associations. In other words it can cause any
version of Windows to associate a particular .exe file with a
particular file name extension.

It would be preferable if the source code would work with Borland''s
free DOS command line C/C++ compiler.

推荐答案



" James Reid" < a8 ****** @ hotmail.comwrote in message

news:11 ********************** @ h48g2000cwc .googlegr oups.com ...

"James Reid" <a8******@hotmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...

我正在寻找DOS命令行c / c ++程序的源代码

这可以改变文件关联。换句话说,它可以导致任何

版本的Windows将特定.exe文件与

特定文件扩展名关联。


如果源代码适用于Borland的

免费DOS命令行C / C ++编译器,那将是更好的选择。
I''m looking for the source code for a DOS command line c/c++ program
that can change file associations. In other words it can cause any
version of Windows to associate a particular .exe file with a
particular file name extension.

It would be preferable if the source code would work with Borland''s
free DOS command line C/C++ compiler.



1)这是一个系统特定的请求,该组仅处理问题

关于标准的问题。 C ....


< Pedant模式开>

2.因为DOS程序无法定义知道有关Windows系统的任何事情

调用你的要求,严格说来是不可能的。你可以构建我认为被称为命令窗口.exe的东西,它看起来有点像DOS

程序给临时用户,但这真的是真的在cmd窗口中运行

的Windows程序.....


使用当前免费的Visual Studtio Express有什么问题?


Dave。

1) This is a system specific request this group only deals with questions
about "standard" C....

<Pedant Mode On>
2. As a DOS program cannot by definition know any thing about Windows System
calls what you ask is, strictly speaking impossible. You can build what I
think is called a "Command Window .exe", which looks a bit like a DOS
program to the casual user, but which is really a Windows program that runs
in a cmd window.....

Whats wrong with using the currently free "Visual Studtio Express"?

Dave.


David Wade写道:
David Wade wrote:

2. As根据定义,DOS程序无法知道有关Windows系统的任何内容

调用你所要求的内容,严格来说是不可能的。


你可以构建我所做的事情>
think被称为命令窗口.exe,它看起来有点像DOS

程序给临时用户,但它实际上是一个运行的Windows程序
cmd窗口中的
.....
2. As a DOS program cannot by definition know any thing about Windows System
calls what you ask is, strictly speaking impossible.

You can build what I
think is called a "Command Window .exe", which looks a bit like a DOS
program to the casual user, but which is really a Windows program that runs
in a cmd window.....



是的。这可能是结合的原因。程序是。 " ASSOC"是Windows XP附带的程序

。这是一个命令行程序,其中一个是
它所做的事情是允许更改文件关联。


但我想要的是这样一个程序的源代码,以便我可以使用特定的程序分配特定的文件扩展名,

,以便它适用于所有版本的Windows 。

Yes. That''s probably what the "assoc" program is. "assoc" is a program
which comes with Windows XP. It''s a command line program, and one of
the things that it does is to allow file associations to be changed.

But what I want is the source code for such a program so that I can
have it assign a specific file name extension with a specific program,
and so that it works with all versions of Windows.


使用当前免费的Visual Studtio Express有什么问题?
Whats wrong with using the currently free "Visual Studtio Express"?



哦。我不知道那件事。我会检查一下。谢谢大卫。


詹姆斯

Oh. I didn''t know about that. I''ll check it out. Thanks, David.

James


" James Reid" < a8 ****** @ hotmail.comwrites:
"James Reid" <a8******@hotmail.comwrites:

David Wade写道:
David Wade wrote:

大于2。由于DOS程序无法根据定义知道有关Windows系统的任何信息,因此严格说来是不可能的。

你可以构建我所认为的所谓的。命令窗口.exe",看起来有点像DOS
程序给临时用户,但它实际上是一个在cmd窗口中运行的Windows程序.....
>2. As a DOS program cannot by definition know any thing about Windows System
calls what you ask is, strictly speaking impossible.

You can build what I
think is called a "Command Window .exe", which looks a bit like a DOS
program to the casual user, but which is really a Windows program that runs
in a cmd window.....



是的。这可能是结合的原因。程序是。 " ASSOC"是Windows XP附带的程序

。这是一个命令行程序,其中一个是
它所做的事情是允许更改文件关联。


但我想要的是这样一个程序的源代码,以便我可以使用特定的程序分配特定的文件扩展名,

,以便它适用于所有版本的Windows 。


Yes. That''s probably what the "assoc" program is. "assoc" is a program
which comes with Windows XP. It''s a command line program, and one of
the things that it does is to allow file associations to be changed.

But what I want is the source code for such a program so that I can
have it assign a specific file name extension with a specific program,
and so that it works with all versions of Windows.



你在错误的地方提问。如果没有系统特定的扩展,标准C不能做你想要做的事情。试试Windows

新闻组。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< ; http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

And you are asking in the wrong place. Standard C cannot do what
you''re trying to do without system-specific extensions. Try a Windows
newsgroup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


这篇关于DOS程序更改文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆