使用扩展名获取文件位置 [英] Getting the file location with extension

查看:110
本文介绍了使用扩展名获取文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我想我有两个应用程序,例如C:\中的app1.exe和D:\中的app2.exe. 当我在C:\中打开appl.exe时,在app2.exe中调用app1.exe,然后app2.exe将运行
并且app2.exe将在运行时提供扩展名为C:\ app1.exe的app1.exe的文件位置.
在这里,我想知道如何显示带有app2.exe扩展名的调用应用程序(app1.exe)的位置.
我的意思是说app2.exe由app1.exe调用,并且当app2.exe运行时,我想显示app1.exe的位置
带有来自app2.exe的扩展名.
请给我有关此事的任何建议.
我要感谢一百万...

Hello All!
I suppose I have two applications such as app1.exe in C:\ and app2.exe in D:\ .
When I open appl.exe in C:\ , app1.exe call in app2.exe and then app2.exe will run
and app2.exe will give the file location of app1.exe with extension such as C:\app1.exe in run time.
Here I wanna know how to reveal the location of calling application (app1.exe) with extension from app2.exe.
I mean that app2.exe is called by app1.exe and when app2.exe is running, I wanna reveal the location of app1.exe
with extension from app2.exe.
Please give me any suggestions for that matter.
I''ll thanks a million...

推荐答案

在启动app2时将其作为参数传递.
Pass it as a parameter when you start app2.


OriginalGriff先生说,传入参数
该应用程序驻留在不同的工作站中吗?因为如果这样做,您必须使用netStream函数发送参数

祝你好运:)
just as mr OriginalGriff said, pass in into a parameters
does the application resides in different Stations? because if it does you have to send the parameter using netStream Functions

Good luck :)


这篇关于使用扩展名获取文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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