用其默认程序打开一个文件 [英] open a file with its default programme

查看:106
本文介绍了用其默认程序打开一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我想用正确的默认程序打开一些文件,例如.doc文件应该用WORD打开,如果安装了.psd文件,应该用Photoshop打开,这应该在html或java下完成脚本。

In my application I want to open some files with the correct default programmes, like .doc file should be open with WORD and .psd files should be opened with Photoshop if it is installed, and this should be done under html or java script.

请告诉我该怎么做。

推荐答案

您无法选择使用哪个应用程序来使用JavaScript打开文件...它只是不没有这种力量。

There is no way for you to choose which application will be used to open your files with javascript...It just doesn't have that power.

这篇关于用其默认程序打开一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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