使用StrProg打开可执行文件时如何使用通配符 [英] How to use a wildcard when opening an executable file with StrProg

查看:69
本文介绍了使用StrProg打开可执行文件时如何使用通配符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码打开Acrobat Reader:

I am using the following code to open up Acrobat Reader:

展开 | 选择 | Wrap | 行号

推荐答案

Nick,


如果在系统上遇到相互矛盾的Acrobat版本,系统会做什么?选择一个,并希望它是正确的版本?


您可能会在其中一个adobe条目下的Windows注册表中查找当前版本。


在我的系统上,我搜索了acrobat并找到了以下句柄,你可以从中提取可执行文件名。
Nick,

What would the system do, if it encountered conflicting versions of Acrobat on the system? Pick one, and hope it was the correct version?

You might look, instead, in the Windows registry under one of the adobe entries to find the current version.

On my system, I searched for acrobat and found the following handle, from which you might be able to extract the executable name.
展开 | 选择 | Wrap | 行号


如果您想从数据库代码访问注册表值,可以在从Windows注册表中读取的模块
If you''d like to access Registry Values from your database code there is some code for that available in Module to Read From the Windows Registry.


此例程打开Acrobat Reader,然后打开发票的存储PDF报告适用于所选记录。由于AcroRd32.exe的路径不同(即Windows 7的\Program Files(x86)\和XP和Vista的\Program Files \),我希望数据库能够在不需要修改路径以适应的情况下在不同的操作系统上运行。如果可能的话,制作通配符的第一个目录(甚至是它的最后一部分)就可以实现。
This routine opens Acrobat Reader and then the stored PDF of the invoice report applying to the selected record. As the paths to AcroRd32.exe vary (ie "\Program Files (x86)\" for Windows 7 and "\Program Files\" for XP and Vista) then I want the database to be able to function on different operating systems without the user having to amend the path to suit. Making the first directory (or even the last part of it) a wildcard would achieve that, if it''s possible.


这篇关于使用StrProg打开可执行文件时如何使用通配符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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