从cd自动启动vb程序 [英] Auto-boot vb program from cd

查看:137
本文介绍了从cd自动启动vb程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想创建一个CD-ROM,当它插入计算机时会自动启动。我希望实现的是VB启动时VB6程序自动运行

。可以这样做吗?如果是,那怎么样?

另外,如何将命令按钮单击链接到

中的文件开头,即cd,即word,excel和access files?


谢谢

Hi

I''m wanting to create a cd-rom which boots automatically when it''s inserted
into the computer. What I hope to achieve is for a VB6 program to run
automatically when the cd boots up. Can this be done? if yes, then how?
Also, how do I link a command button click to the opening of files within
the cd, i.e. word, excel and access files?

Thanks

推荐答案

" Roy Riddex" < RO ************** @ blueyonder.co.uk>写道:
"Roy Riddex" <ro**************@blueyonder.co.uk> wrote:


我想创建一个CD-ROM,当它插入计算机时自动启动。我希望实现的是VB启动时VB6程序自动运行。可以这样做吗?如果是,那怎么样?
另外,如何将命令按钮单击链接到cd中的文件开头,即word,excel和access文件?

谢谢
Hi

I''m wanting to create a cd-rom which boots automatically when it''s inserted
into the computer. What I hope to achieve is for a VB6 program to run
automatically when the cd boots up. Can this be done? if yes, then how?
Also, how do I link a command button click to the opening of files within
the cd, i.e. word, excel and access files?

Thanks




这个词是autorun,而不是autoboot - 这是一个完全不同的动物。

自动运行需要将CD设备设置为自动运行/播放并且CD有
和autorun.ini文件,用于指定要运行的程序。


gotcha's"使用VB是你必须包含运行时文件,如果你使用任何ocx',你必须在目标PC上注册它们。


关于我的更多信息: http://www.jecarter.com/

VB3 / VB6 / NSBasic Palm / C / PowerBasic源代码: http://www.jecarter.com/programs.html

Pablo图形输入板和JamCam相机的驱动程序: http://home.earthlink.net/~mwbt/

johnecarter at @ at mindspring dot .dot com。修复显而易见的电子邮件回复。



The term is autorun, not autoboot - which is a totally different animal.
Autorun requires that the CD device be set for autorun/play and that the CD have
and autorun.ini file that specifies what program is to be run.

The "gotcha''s" with VB is that you''ll have to include the run time file and, if
you use any ocx''s, you''ll have to register them on the target PC.

More about me: http://www.jecarter.com/
VB3/VB6/NSBasic Palm/C/PowerBasic source code: http://www.jecarter.com/programs.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter at@at mindspring dot.dot com. Fix the obvious to reply by email.




" Wiz" <螺** @ message.body>在消息中写道

news:97 ******************************** @ 4ax.com ...

"the Wiz" <lo**@message.body> wrote in message
news:97********************************@4ax.com...
" Roy Riddex" < RO ************** @ blueyonder.co.uk>写道:
"Roy Riddex" <ro**************@blueyonder.co.uk> wrote:


我想要创建一个CD-ROM,当它的
插入计算机时会自动启动。我希望实现的是VB启动时VB6程序自动运行。可以这样做吗?如果是,那怎么样?
另外,如何将命令按钮单击链接到cd中的文件开头,即word,excel和access文件?

谢谢

这个术语是autorun,而不是autoboot - 这是一个完全不同的动物。
自动运行需要将CD设备设置为自动运行/播放并且
Hi

I''m wanting to create a cd-rom which boots automatically when it''s insertedinto the computer. What I hope to achieve is for a VB6 program to run
automatically when the cd boots up. Can this be done? if yes, then how?
Also, how do I link a command button click to the opening of files within
the cd, i.e. word, excel and access files?

Thanks

The term is autorun, not autoboot - which is a totally different animal.
Autorun requires that the CD device be set for autorun/play and that the



CD和autorun.ini文件指定要运行的程序。

gotcha的使用VB是你必须包含运行时文件
,如果使用任何ocx',你必须在目标PC上注册它们。


CD have and autorun.ini file that specifies what program is to be run.

The "gotcha''s" with VB is that you''ll have to include the run time file and, if you use any ocx''s, you''ll have to register them on the target PC.



我很抱歉,但我是新手,你说的大部分内容并不意味着给我任何东西。你已经说过要做什么而不告诉我如何做b
。我不知道什么是运行时文件? OCX的?将它们注册到目标上

pc ??你是什​​么意思?


I''m sorry but I''m a newbie and most of what you just said doesn''t mean
anything to me. You''ve said what needs to be done without telling me how to
do it. I don''t know what a run time file?? ocx''s?? register them on target
pc?? what do you mean?


> > >我想创建一个cd-rom,它在
> > >I''m wanting to create a cd-rom which boots automatically when it''s
插入计算机时自动启动。我希望实现的是VB启动时VB6程序自动运行。可以这样做吗?如果是,那怎么样?
另外,如何将命令按钮单击链接到文件
的开头,包括cd,即word,excel和access files?
into the computer. What I hope to achieve is for a VB6 program to run
automatically when the cd boots up. Can this be done? if yes, then how?
Also, how do I link a command button click to the opening of files withinthe cd, i.e. word, excel and access files?



这个词是Autorun。它意味着在将一个程序插入到基于Windows的计算机中时,从CD运行一个程序。此功能仅适用于Windows 95

以上。


您的方法是将程序放在CD上,就像通常那样。

这个程序需要一个文件才能运行,这个文件可能会也可能不会出现在你自动运行的

计算机上。但是,这可以通过将

放在运行时文件中来解决。在CD上,与程序相同的文件夹

(希望不在文件夹中,但在光盘上)。对于Visual Basic 4程序,

它是MSVB4032.DLL,对于Visual Basic 5它是MSVBVM50.DLL和Visual Basic 6它的

MSVBVM60.DLL,其中任何一个都应该在

硬盘驱动器上的Windows文件夹(通常为C:\ Windows或C:\ Winnt - 如果你不知道b $ b,请进行搜索)。

你的程序使用的任何额外功能(控件)都需要额外的文件,这会使事情变得复杂,所以要简单一点!

最后,这张CD是没有一个最终文件,名为AUTORUN.INF,没用。

这个文件告诉Windows它应该如何自动运行CD。它应包含

以下行:

[autorun]

open = program.exe

icon = iconfile .ico

图标线不一定要在那里。如果你有一张CD的特定图标,那就是

。此外,program.exe应该是光盘上程序的名称,

包括它在CD上的任何文件夹。 (例如myapp.exe,

" program \ myapp.exe"等)


准备好这些文件后,刻录Autorun.inf文件到CD的根(即,不在任何文件夹中)和程序文件以及运行时文件的根目录。在

相同的文件夹中,这是用Autorun.inf编写的文件夹。


希望这现在有意义。你习惯这样做会更容易。


-

QuickHare

删除不在这里发送电子邮件直接。


The term is Autorun. It means to run a program from a CD when it is inserted
into a Windows-based computer. This feature only works on Windows 95
upwards.

The way you do it is by putting the program on the CD as you normally would.
This program needs a file to run, which may or may not be present on the
computer you Autorun it on. However, this can be worked around by putting
the "Run-time files" on the CD, in the same folder as the program
(hopefully, not in a folder, but on the disc). For Visual Basic 4 programs,
it MSVB4032.DLL, for Visual Basic 5 it MSVBVM50.DLL and Visual Basic 6 its
MSVBVM60.DLL, any of which should be in your Windows folder on your
hard-drive (typically C:\Windows or C:\Winnt - do a search if you don''t
know).
Any extra features (controls) your program uses needs extra files which
complicate things, so make it simple!
Finally, this CD is useless without one final file, called "AUTORUN.INF".
This file tells Windows how it should Autorun the CD. It should contain the
following lines:
[autorun]
open = program.exe
icon = iconfile.ico
The icon line doesn''t have to be there. It''s if you have a specific icon for
the CD. Also, program.exe should be the name of your program on the disc,
including any folders it''s in on the CD. (eg "myapp.exe",
"program\myapp.exe", etc)

Once you have these files ready, burn the Autorun.inf file to the root of
the CD (ie, not in any folder) and the program file and "run-time files" in
the same folder, which is the folder written in Autorun.inf.

Hope this now makes sense. It''s easier as you get used to doing it.

--
QuickHare
Remove the NOT HERE to email direct.


这篇关于从cd自动启动vb程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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