开发者

Calling an exe from JavaScript (need to change current directory)

I'm calling an exe from within an html page using Javascript. The problem is my EXE has some dependencies which are referred from current directory. Therefore, I need to change current directory to the EXEs directory, and after calling the exe it should be changed back to previous one so that nothing else is effected in later steps.

Can I a开发者_StackOverflow社区lso determine when the launched exe is closed so that I can set current directory back to original.


This is not a direct answer to your question but you are violating the web standards by accessing client system through HTML page. I am pretty much sure you are able to do that only in damn IE using File System Object (FSO). This is absolutely not recommended to access files via Javascript/VBScript because it is a security risk. You should avoid doing that for people to consider your HTML page a good place to visit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜